๐Installation
Resource installation guide and dependencies
Last updated
Resource installation guide and dependencies
Last updated
Resource | Install | Description |
---|---|---|
1. Download your resource from FiveM's Keymaster.
2. Unzip fs_switch.zip folder and place it into your resource folder.
3. Install items according to your inventory {you can copy items from below}
4. Install images that come with script in install_me_first/images folder
-- add item into ox_inventory/shared/items.lua under last item
["fs_switch"] = {
label = "Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Switch',
client = {
export = 'fs_switch.fs_switch'
},
},
["fs_redswitch"] = {
label = "Red Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Red Weapon Switch',
client = {
export = 'fs_switch.fs_redswitch'
},
},
["fs_blueswitch"] = {
label = "Blue Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Blue Weapon Switch',
client = {
export = 'fs_switch.fs_blueswitch'
},
},
["fs_greenswitch"] = {
label = "Green Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Green Weapon Switch',
client = {
export = 'fs_switch.fs_greenswitch'
},
},
-- add item into ur inventory at the bottom of ur last added item
['fs_switch'] = {
['name'] = 'fs_switch',
['label'] = 'Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_switch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_redswitch'] = {
['name'] = 'fs_redswitch',
['label'] = 'Red Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_redswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_blueswitch'] = {
['name'] = 'fs_blueswitch',
['label'] = 'Blue Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_blueswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_greenswitch'] = {
['name'] = 'fs_greenswitch',
['label'] = 'Green Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_greenswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
-- add item into qb_core items file under last item
['fs_switch'] = {
['name'] = 'fs_switch',
['label'] = 'Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_switch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_redswitch'] = {
['name'] = 'fs_redswitch',
['label'] = 'Red Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_redswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_blueswitch'] = {
['name'] = 'fs_blueswitch',
['label'] = 'Blue Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_blueswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
['fs_greenswitch'] = {
['name'] = 'fs_greenswitch',
['label'] = 'Green Switch',
['weight'] = 50,
['type'] = 'item',
['image'] = 'fs_greenswitch.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Switch for Pistols'
},
* You must go through all configuration options & settings in shared/config.lua
Congratulations, you've successfully installed the resource. Restart the server and you will be all set.
Required
callbacks,notification