๐Installation
Resource installation guide and dependencies
Framework
Dependencies
Resource | Install | Description |
---|---|---|
Required | callbacks,notification |
1 - Start
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
2 - Items
-- 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',
},
["fs_redswitch"] = {
label = "Red Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Red Weapon Switch',
},
["fs_blueswitch"] = {
label = "Blue Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Blue Weapon Switch',
},
["fs_greenswitch"] = {
label = "Green Switch",
weight = 1,
stack = true,
close = true,
allowArmed = true,
description = 'Green Weapon Switch',
},
-- 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'
},
3 - Configuration
* You must go through all configuration options & settings in shared/config.lua
4 - Ready
Congratulations, you've successfully installed the resource. Restart the server and you will be all set.
Last updated