大家好,经常看到有人询问如何在一个资源中放置多个脚本。 这真的很容易,以前北海端里就有类似的资源文件夹我记得应该叫Easy目录大家可以去看看参考一下。https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
下面我将向你们展示一个例子: https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
首先您需要进行设置,因为您可以看到我的包中有 3 个脚本:Script1、2、Script 3、 Scripthttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
完成后,我们就可以转到 fxmanifesthttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
所以这里是 fxmanifest代码 -- Script pack by godguttenhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
fx_version 'cerulean'https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
game { 'gta5' }https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
client_scripts {https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
'/**/client.lua'https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
}https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
server_scripts {https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
'/**/server.lua'https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
} 你好啊
这样做将允许所有具有名称的文件 client.lua或者 server.lua无需单独列出每个人即可开始。 (注意:只有当你的客户端和服务器文件具有相同的名称时才会起作用)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
范例下载ScriptPack.rar
(728 Bytes, 下载次数: 15)
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
如果您的客户端或服务器文件不同,您可以使用多组写在 fxmanifest文件里fx_version 'cerulean'https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
game { 'gta5' }https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
client_scripts {https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
"'script1/client.lua",https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
'script2/client.lua',https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
'script3/server.lua'https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
}https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
server_scripts {https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
'script1/server.lua',https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
'script2/server.lua',https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
'script3/server.lua'https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
} https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
另一种方法是单独声明每个文件 -- Script pack by godguttenhttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
fx_version 'cerulean'https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
game { 'gta5' }https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
-- Script 1 https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
client_script 'script1/client.lua'https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
server_script 'script1/server.lua'https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
-- Script 2https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
client_script 'script2/client.lua'https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
server_script 'script2/server.lua'https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
-- Script 3https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
client_script 'script3/client.lua'https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
server_script 'script3/server.lua' https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
|