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
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
1 Like
I agree, but I didn’t mean by args
awesome! works great now if open to suggestions for a script id love to make one that should be simple and community would love im sure
1 Like
Vihtal
July 8, 2023, 10:18pm
7
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
1 Like
Vihtal
July 9, 2023, 10:59am
9
Yeah but I want both scripts to work together. If I do that then it interferes with one another
Vihtal
July 9, 2023, 6:24pm
11
I’ve tried but the there’s a lot of code to change