https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
OX_inventory官方原贴地址https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
1.介绍OX_inventory 库存插件https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
OX_inventory文件,包含武器,物品,制作台,等功能https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
2.配置自定义物品路径:\ox_inventory\data\items.lua['burger'] = {--物品ID,不可重复https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
哈哈
label = '汉堡',--显示名称https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
weight = 220,--重量,单位:ghttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
client = {https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
status = { hunger = 200000 },--esx_status,值:hunger饥饿、thirst口渴、drunk醉酒https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
--anim = 'eating',--需要在/data/animations.lua中配置(可以减少重复的配置,让代码更简洁)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
prop = { model = `prop_cs_burger_01`, pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },哈哈
usetime = 2500,--使用时间https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
cancel = true,--使用时可取消https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
},https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
}, https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
3.添加自定义武器路径:\ox_inventory\data\weapons.lua['WEAPON_ADESERT'] = {https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
label = '沙漠之鹰 - 动漫元素',https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
weight = 3100,https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
durability = 0.03,https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
ammoname = 'ammo-9',https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
},https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
['WEAPON_JBKNIFE'] = {https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
label = '蝴蝶刀 - 渐变之色',https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
weight = 1200,https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
durability = 0.1,https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
},https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
['WEAPON_PKS'] = {https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
label = '猎魂之际',https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
weight = 1200,https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
durability = 0.1,https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
},不要乱来哦
['WEAPON_ADVANCEDRIFLE'] = {https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
label = '高级步枪',https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
weight = 3180,https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
durability = 0.03,https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
ammoname = 'ammo-rifle',https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
}, https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
4.添加自定义商店路径:\ox_inventory\data\shops.luazhongzicailiaoshop = {https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
name = '种子材料商店',https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
inventory = {https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
{ name = 'corn_seed', price = 200},--玉米种子https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
{ name = 'tomato_seed', price = 200},--番茄种子https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
{ name = 'wheat_seed', price = 200},--小麦种子https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
{ name = 'broccoli_seed', price = 200},--西兰花籽https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
{ name = 'carrot_seed', price = 200},--胡萝卜籽https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
{ name = 'potato_seed', price = 200},--土豆卜籽https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
{ name = 'pickle_seed', price = 200},--泡菜籽https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
{ name = 'garden_pitcher', price = 200},--花园洒水https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
{ name = 'garden_shovel', price = 200},--花园铲https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
}, locations = {https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
vec3(2336.03, 4860.06, 41.81)哈哈
}, targets = {https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
{ loc = vec3(2336.03, 4860.06, 41.81), length = 0.5, width = 3.0, heading = 223.3, minZ = 30.5, maxZ = 32.0, distance = 6 }https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
}https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
},
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
以上便是 ox_inventory基本使用方法https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
|