#nlrp-rentals

14 messages · Page 1 of 1 (latest)

novel lodge
#

if anyone has some experience with ox_libs context menus i need help cant seem to get the menu to interact with the menu unless i put their vehicle hashs in but i want the vehicle hash to be read a vehicleModel

dusk notch
#

nice

novel lodge
#

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

jagged cape
novel lodge
#

hang on think i fixed it trying it now lol was tired when i started making it xD

jagged cape
#

what code are you using to remove them from the players garage upon restart?

novel lodge
#

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)

novel lodge
#

now limited to 1 sql rather than 2

viral glade
#

why even do an sql if on restarts it just deletes the info?

novel lodge
#

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