#nlrp-rentals
14 messages · Page 1 of 1 (latest)
nice
having issues with how the menu should work though lol bugging issues right now need help from someone that know how to use ox_lib context menu
I’m confused what you mean by this, what seems to be bugging?
hang on think i fixed it trying it now lol was tired when i started making it xD
all good lol
what code are you using to remove them from the players garage upon restart?
had to make 2 new sqls so saves the parked cars and when restart happens it deletes all knowledge of the vehicle ever existing so people cant exploit it
AddEventHandler('onServerResourceStop', function(resourceName)
if resourceName == GetCurrentResourceName() then
MySQL.Sync.execute("DELETE FROM rented_vehicles", {})
end
end)
AddEventHandler('onServerResourceStart', function(resourceName)
if resourceName == GetCurrentResourceName() then
MySQL.Sync.execute("DELETE FROM parked_rented_vehicles", {})
end
end)
now limited to 1 sql rather than 2
why even do an sql if on restarts it just deletes the info?
because im doing this so rented vehicles can be parked and saved so it works in the phone so if you do a job but park the car you can go back to it
and deleting is so you can only keep the rental till restart so after restart it clears all rented vehicles completly so its clear to start over
like no pixel has theirs setup but we arent taking a fee if they dont return before restart