This is yet another chop shop mod, but I think I have an interesting take on it.
It creates an NPC that you need to find and talk to, once you talk to him he will give you a random car from an array and a location, you need to retrieve the car and take it to a chop shop garage (all of which are configurable locations), there you can chop the car. The amount of money received for chopping the car depends on the damage the car has taken during travel. If you damage the car way too much you will receive no payment.
I made the script very configurable with an easy to use config file. It also has an option for cooldown but keep in mind this wasn’t tested a lot so it might be wonky. It also uses next to no computer resources, sitting at 0.02 ms idle and 0.15ms when you are drawing the text.
This script uses pogressBar made by Poggu, which you can download here.
If you decide you don’t want to use these progress bars, you can simply replace all the exports in the client script with the one you use.
Feel free to edit the script to your liking, but please do not share or release your edited versions anywhere without first getting my permissions.
If you’re using pogressBar, download it, if there is remove -master in the name, put the folder in the resources folder and start it in your server.cfg Make sure you start it before the chopshop script.
Change the coordinates in the config file to your liking, the ones I set were just placeholder for testing so I may have gotten some wrong by accident so it could be in the ground. Do the same for the car models.
Do you get any screaming red errors in the console after you finish talking to the NPC? (F8 is the button to open the console in case you don’t know)
Yeah, I just wanted a bit of a different take on it, as I feel most of them are like “Here’s a list, bring any of these cars to the circle”. Thank you though!
Yeah it could very much be a onesync problem, I never tested it with onesync as I don’t use it on my local server. If you ever tinker around with it and figure out how to get them to spawn with it on, please share it here!
Thanks for the direction to that ambo script: I can confirm that solution works here too. Basically edit the script so that it only spawns the car as you approach the location.
E.g:
if HasVehicleObjective == true and not vehicleHasSpawned then
local distance = Get3DDistance(PlayerCoords, vehicleCoords)
if distance < 50 then
SpawnVehicle()
end
end
(But then other edits, to move spawning into a separate function and make some local things global.)