forked from Simnation/Main
69 lines
No EOL
3.4 KiB
Markdown
69 lines
No EOL
3.4 KiB
Markdown
Car detailing script for FiveM QBcore by Fuenf
|
|
|
|
Website: https://fivehead.eu
|
|
|
|
Hello! Thank you for your purchase. We hope this script enhances player interaction on your server.
|
|
If you require assistance, please feel free to join our Discord server or post your questions on the cfx forum.
|
|
Discord Server: https://discord.gg/4adcW9PUbY
|
|
|
|
Requirements:
|
|
- QBcore Framework https://github.com/qbcore-framework/qb-core
|
|
- ox-target https://github.com/overextended/ox_target
|
|
|
|
Installation Instructions:
|
|
|
|
1. Resource:
|
|
**Place the 'fh_detailer' folder into your resources directory**
|
|
For older FiveM versions, you may need to add the following line to your server.cfg file: start fh_detailer
|
|
|
|
2. Items & Tables:
|
|
**Add this to your shared>items.lua**
|
|
car_wax = { name = 'car_wax', label = 'Car Wax', weight = 500, type = 'item', image = 'car_wax.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'To keep you car shiny for a long time' },
|
|
**The following items are optional. However, if you or your players want to manually place hoses in-game (Config.HoseDB = true), they becomes necessary.**
|
|
-- FH_Detailer
|
|
hose_reel = { name = 'hose_reel', label = 'Hose Reel', weight = 2000, type = 'item', image = 'hose_reel.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A big hose reel to mount on walls' },
|
|
hose_reel2 = { name = 'hose_reel2', label = 'Small Hose Reel', weight = 1000, type = 'item', image = 'hose_reel2.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A small hose reel to place where needed' },
|
|
bucket_sponge = { name = 'bucket_sponge', label = 'Bucket & Sponge', weight = 700, type = 'item', image = 'bucket_sponge.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A professioal bucket and sponge to clean vehicles' },
|
|
bucket_sponge2 = { name = 'bucket_sponge2', label = 'Mobile Bucket & Sponge', weight = 700, type = 'item', image = 'bucket_sponge.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'A mobile bucket and sponge to clean vehicles' },
|
|
|
|
|
|
|
|
**Tables:**
|
|
|
|
CREATE TABLE IF NOT EXISTS `car_wax` (
|
|
`plate` varchar(255),
|
|
`duration` int(11),
|
|
`dirtyness` float,
|
|
PRIMARY KEY (plate)
|
|
);
|
|
|
|
**The following table is optional. However, if you or your players want to manually place hoses in-game (Config.HoseDB = true), it becomes necessary.**
|
|
CREATE TABLE IF NOT EXISTS `detailer_list` (
|
|
`player` varchar(255) DEFAULT NULL,
|
|
`created_on` datetime DEFAULT current_timestamp(),
|
|
`coords` varchar(255) DEFAULT NULL,
|
|
`heading` varchar(255) DEFAULT NULL,
|
|
`type` tinyint(9) DEFAULT NULL
|
|
);
|
|
|
|
|
|
3. Have fun with the script
|
|
|
|
|
|
**Attention:**
|
|
If you are using ox_inventory and you can't aim or shoot with the hose you need to add something to the init.lua of ox_inventoy.
|
|
|
|
Find this part:
|
|
ignoreweapons[`WEAPON_UNARMED`] = true
|
|
ignoreweapons[`WEAPON_HANDCUFFS`] = true
|
|
ignoreweapons[`WEAPON_GARBAGEBAG`] = true
|
|
ignoreweapons[`OBJECT`] = true
|
|
ignoreweapons[`WEAPON_HOSE`] = true
|
|
and add this:
|
|
ignoreweapons[`WATER_NOZZLE`] = true
|
|
|
|
|
|
**Warning:**
|
|
If you restart the script while a player is holding the nozzle it will crash this persons client.
|
|
|
|
If you find any aspects unclear during the installation process, don't hesitate to join our Discord server mentioned above or post your questions on the cfx forum for assistance. |