https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
OX_inventory官方原贴地址https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
1.介绍OX_inventory 库存插件https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
OX_inventory文件,包含武器,物品,制作台,等功能https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
2.配置自定义物品路径:\ox_inventory\data\items.lua['burger'] = {--物品ID,不可重复https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
label = '汉堡',--显示名称https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
weight = 220,--重量,单位:ghttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
client = {https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
status = { hunger = 200000 },--esx_status,值:hunger饥饿、thirst口渴、drunk醉酒https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
--anim = 'eating',--需要在/data/animations.lua中配置(可以减少重复的配置,让代码更简洁)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
anim = { dict = 'mp_player_inteat@burger', clip = 'mp_player_int_eat_burger_fp' },https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
prop = { model = `prop_cs_burger_01`, pos = vec3(0.02, 0.02, -0.02), rot = vec3(0.0, 0.0, 0.0) },这是干扰码
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
usetime = 2500,--使用时间https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
cancel = true,--使用时可取消https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
},https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
}, https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
3.添加自定义武器路径:\ox_inventory\data\weapons.lua['WEAPON_ADESERT'] = {https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
label = '沙漠之鹰 - 动漫元素',https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
weight = 3100,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
durability = 0.03,https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
ammoname = 'ammo-9',https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
},这是干扰码
不要乱来哦
['WEAPON_JBKNIFE'] = {https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
label = '蝴蝶刀 - 渐变之色',https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
weight = 1200,https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
durability = 0.1,https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
},https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
['WEAPON_PKS'] = {https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
label = '猎魂之际',https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
weight = 1200,https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
durability = 0.1,https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
},https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
['WEAPON_ADVANCEDRIFLE'] = {https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
label = '高级步枪',你好啊
weight = 3180,https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
durability = 0.03,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
ammoname = 'ammo-rifle',https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
}, https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
4.添加自定义商店路径:\ox_inventory\data\shops.luazhongzicailiaoshop = {https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
name = '种子材料商店',https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
inventory = {https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
{ name = 'corn_seed', price = 200},--玉米种子https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
{ name = 'tomato_seed', price = 200},--番茄种子https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
{ name = 'wheat_seed', price = 200},--小麦种子https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
{ name = 'broccoli_seed', price = 200},--西兰花籽https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
{ name = 'carrot_seed', price = 200},--胡萝卜籽https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
{ name = 'potato_seed', price = 200},--土豆卜籽https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
{ name = 'pickle_seed', price = 200},--泡菜籽https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
{ name = 'garden_pitcher', price = 200},--花园洒水你好啊
{ name = 'garden_shovel', price = 200},--花园铲https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
}, locations = {https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
vec3(2336.03, 4860.06, 41.81)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
}, targets = {https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
{ 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/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
}https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
}, https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
以上便是 ox_inventory基本使用方法https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
|