script deleted, check github if u still need it

21 Likes

Git link is not working

had it on private, it’s public now. thank you

1 Like

Awesome, now I can get rid of qb-vehicleshop lol

3 Likes

Löwe :lion:

2 Likes

it works fine but i get this

Hi, thanks for letting me know - had a little typo. It‘s fixed now, redownload client main.lua :slight_smile:

While it is a nice version of the ‘very simple resource being sold on the CFX forums’, it’s not as optimized.

1 Like

u can now start and list points here why people should consider buying your script instead of downloading almost the same thing for free :wink:

Some improvements if possible:

  • Change it to vector4(x,x,x,x) for the vehicle spots, using vector3 and then a seperate heading makes it a bit tedious to do lots, most frameworks have a way to get vec4 these days to clipboard.

  • Possible to spawn cars on server start instead of player detect? (not sure on performance wise if this is good) but otherwise the player detection seems to be a bit slow.

  • Seems once player is in range, the cars slowly spawn in, is there a way to make them all spawn at once in that particular area? Detection seems to be a bit dodgy so it loads half of them someitmes.

  • Possible check on player spawn to load vehicles if spawning in within the radius?

Set the wait time to 0 in the first loop, then the „detection“ will happen faster.
PR‘s are welcome :wink:

Would Wait(0) cause issues with players racing past etc?

I will do some PR’s once I get more time to do little stuff like that which can be a good learning thing :slight_smile:

1 Like

Depends on your drawdistance and position of the vehicles :smiley:

that looks nice, good work!

1 Like

In the main.lua in line 54, you have to add the line that ends, it will have to be like thist [ RemoveDecalsFromVehicle(vehicleeee,true)] to fix sticker, color and more…

1 Like

where is the link?

What?