UPDATE - 31/07/2022
- Code improvement (thank you ofcShiro)
- Timer Added - Image.
Can be possible to disabled this option in config.
UPDATE - 31/07/2022
- Code improvement (thank you ofcShiro)
- Timer Added - Image.
Can be possible to disabled this option in config.
As always! regular Updates!!! Thank you so much for that.!!!
hey is there a way to set the automatic vehicle despawn so that it counts the time when he gets out of the car?
Hello NotSoSmart,
currently the script works like this:
When the rental time runs out and if the player is in the rented vehicle, the vehicle will be eliminated x time after the time expires, configurable in the config
['delete_time'] = 25000, -- time in MS that vehicle will be deleted if delete function is active and after time is finished. Default 25000MS | 25Seconds.
If the time runs out and the player is not in the vehicle, the vehicle will be eliminated as soon as the time is up.
But yes, in the next update I can put an option for your idea!
can’t we add more then one rent point ?
i tried with your example and it gets errors
Hello hasidu,
yes it is possible to add more than one! I tested it now, because there could be a bug but everything is working. Can you show me your config?
Good release, keep working with awesome scripts
Its compatible with QBcore ??
Not at this moment. But in the future maybe!
dam, nice script, can you make this standalone? im using VRP, thanks anyway.
Sure! Next update will be standalone, which will be released today probably
Hello bro! This looks very nice! But i think the script will be little more real if you dont have a time and the car crash, It should be cool if it cost money in every more minute you drive the car and then you can write like /stop in chat and the car will be gone
I pointed out the suggestion, and thanks for the feedback!
nice one ,
but HOW TO add multi markers and blips ?
Hello,
You have a example in config “Other Example”
Config.Locations = {
['lossantosavenue'] = { -- name of the location, you can put whatever you like.
coords = vector3(-1027.47,-2743.46,20.16), -- coord for the menu.
spawn_coords = {x =-1024.80, y =-2734.81, z=20.09, h=243.77}, -- coord where vehicle will spawn.
return_coords = vector3(-1032.65,-2732.00,20.16), -- coord for return the vehicle.
markers = {
spawn = {
key = 38, -- key to open the menu. Default E
type = 2, -- type of marker.
size = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
color = {r = 255, g = 255, b = 255}, -- color of marker.
text = '[ ~g~E~w~ ] Rent Vehicle', -- text of marker.
text = '[ ~g~E~w~ ] Rent Vehicle' -- text of marker.
},
return_spot = {
key = 47, -- key to open the menu. Default G
type = 2, -- type of marker.
size = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
color = {r = 255, g = 0, b = 0}, -- color of marker.
text = '[ ~r~G~w~ ] Return Vehicle' -- text of marker.
}
},
blips = {
spawn = {
name = 'Rent Vehicle', -- name of the blip in map.
sprite = 523, -- sprite of the blip.
scale = 0.8, -- scale of the.
color = 2 -- color of the.
},
return_spot = {
name = 'Return rented Vehicle', -- name of the return blip in map.
sprite = 523, -- sprite of the return blip.
scale = 0.8, -- scale of the return blip.
color = 4 -- color of the return blip.
}
}
},
-- Other Example --
-- ['location2'] = { -- name of the location, you can put whatever you like.
-- coords = vector3(244.65,-1569.90,29.12), -- coord for the menu.
-- spawn_coords = {x =234.39, y =-1575.83, z=29.12, h=113.38}, -- coord where vehicle will spawn.
-- return_coords = vector3(221.32,-1583.36,29.14), -- coord for return the vehicle.
-- markers = {
-- spawn = {
-- key = 38, -- key to open the menu. Default E
-- type = 2, -- type of marker.
-- size = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
-- color = {r = 255, g = 255, b = 255}, -- color of marker.
-- text = '[ ~g~E~w~ ] Rent Vehicle' -- text of marker.
-- },
-- return_spot = {
-- key = 47, -- key to open the menu. Default G
-- type = 2, -- type of marker.
-- size = {x = 0.3, y = 0.3, z = 0.3}, -- size of marker.
-- color = {r = 255, g = 0, b = 0}, -- color of marker.
-- text = '[ ~r~G~w~ ] Return Vehicle' -- text of marker.
-- }
-- },
-- blip = {
-- name = 'Rent Vehicle', -- name of the blip in map.
-- sprite = 523, -- sprite of the blip.
-- scale = 0.8, -- scale of the.
-- color = 2 -- color of the.
-- }
-- },
}
can u make update for giveback money after giveback vehicle?
Yes! A new version is coming in a few days with many new things
UPDATE - 01/11/2022
- Improved code and easier to read and understand.
- Added option to choose vehicle color.
The colors can be configured in “html/js/config.js” and each one has its price and with a maximum of 10 colors.
- Now each location has its vehicles.
- Added option to refund when delivering the vehicle on time.
in config “refundMoneyWhenDelivered” default true (Thank you kevinindy2k for the suggestion)
adding timeRent for each vehicle