[ESX] Rent A Car with qtarget(ox) and ox_lib

For more information visit github / Za vise informacija posetite github

| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | 363 |
| Requirements | qtarget or ox_target and ox_lib |
| Support | Yes |

6 Likes

awesome! please make it where you can change the ox target coords in config and also a config to take from bank or cash :smiley:

1 Like

Why not use “args” and add the car details like the price and model etc then pass it to just one event that sends to the server rather than making 3 different calls?

{
        title = 'Faggio',
        description = "$300",
        icon = 'fas fa-motorcycle',
        image = 'https://gtacars.net/images/490d53928ed54a3b2c656681ab98159c',
        event = "lazic:LeaseVehicle",
        args = {Model = `faggio`, Price = 300},
},

AddEventHandler('lazic:LeaseVehicle', function(args)
    print(args.Model, args.Price)
end)

Will make this script much much smaller :slight_smile:

1 Like

updated :smiley:

1 Like

I agree, but I didn’t mean by args

awesome! works great now :smiley: if open to suggestions for a script id love to make one that should be simple and community would love im sure

1 Like

so im trying to replicate this script but turn it into a boat rental, cant seem to figure it out tho, any ideas or suggestions?

just change the car spawn name for a boat :confused:

1 Like

Yeah but I want both scripts to work together. If I do that then it interferes with one another

So duplicate the menu?

1 Like

I’ve tried but the there’s a lot of code to change