OK, it kind a worked .
But you probably have to disable row 52:
selectRandomVehicle = nil

And it’s SUPERD, not SUPERDIAMOND :wink:

Ran into this issue as well. Anyone figure out a fix?

anyone know how to get a proper payment method for esx, ive tried for 2days now, no errors just nothing happens

could you expand your payment system?

if anyone can help me with the EXS side of this im having issues. This is what i have so far if anyone wants to takea look

RegisterServerEvent("Darkzy:PayDeManPlz")
AddEventHandler("Darkzy:PayDeManPlz", function(price)
	local src = source

		TriggerClientEvent("chatMessage", src, tostring("^4Chop Shop^0: you recieved ^2$"..price.."^0 for Chopping this Vehicle^0"))
			TriggerEvent("es:getPlayerFromId", source, function(user)
				user.addMoney('black_money', price)
				CancelEvent()
			end)
	
end)

but i keep getting this error
no script guid for vehicle 1021698 in SET_VEHICLE_HANDLING_FIELD

I’m having a similar issue to this


I will try and sort it when I have free time later. Just quickly tested the script before I had to leave for work.

If anyone else has a fix for this that’d be great. I did try the one further up from ‘Brian’ but It didn’t work for me

Ok so this worked for me
image
thanks @turbo!!!

+1

you have a working payment system?

This might be a bug but when i bring the requested car to the chopshop it will not take the car. no error code in the console or anything the car will just not be taken.

So I know I haven’t posted on here a while but I have worked on a script quite a bit. Adding a lot of depth to it and a lot of polish and other cool little things.

I do want to remind everybody that if you’re adding vehicles that the vehicle display name is not necessarily the vehicle spawn name.

For example: the Schwartzer display name is actually SCHWARZ I believe. Make sure you check the display name before adding it to the config. I imagine this is the issue with most of the vehicles not being accepted.

As for the other bug of it taking any vehicle , I’m not sure about that one. I did experience another bug however a vehicle is not deleting when there are a lot of people at the chopping location.

pretty sure my bug was only because I added a timer and a ped that actually chopped the car so the variable would get lost. Function of the double check and fix that as well.

Overall I want to thank the original creator for creating a solid grips with a lot of maneuverability. Great work.

So in the vehicles.meta file there is
<.modelName>
<.txdName>
<.handlingId>
<.gameName>
<.vehicleMakeName>

Im guessing the name you have to put in the client side is the game name?

On the menu open before the logic to start the chop add the following.
print(GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsUsing(GetPlayerPed(PlayerId())))))

This will bring in your F8 Console the vehicle display name of whatever vehicle you are in.

Here are some of the ones I’ve added that needed exceptions.
if selectRandomVehicle3.model == “LANDSTAL” then
veh3 = ‘LANDSTALKER’
elseif selectRandomVehicle3.model == “BJXL” then
veh3 = ‘BEEJAY XL’
elseif selectRandomVehicle3.model == “COQUETTE2” then
veh3 = ‘COQUETTE CLASSIC’
elseif selectRandomVehicle3.model == “TURISMOR” then
veh3 = ‘TURISMO R’
elseif selectRandomVehicle3.model == “SABREGT” then
veh3 = ‘SABRE GT’
elseif selectRandomVehicle3.model == “COMET2” then
veh3 = ‘COMET’
elseif selectRandomVehicle3.model == “BUCCANEE” then
veh3 = ‘BUCCANEER’
elseif selectRandomVehicle3.model == “NINEF2” then
veh3 = ‘NINE F CABRIO’
elseif selectRandomVehicle3.model == “CARBONIZ” then
veh3 = ‘CARBONIZZARE’
elseif selectRandomVehicle3.model == “BFINJECT” then
veh3 = ‘BF INJECTION’
elseif selectRandomVehicle3.model == “DILETTAN” then
veh3 = ‘DILLETTANTE’
elseif selectRandomVehicle3.model == “MINIVAN” then
veh3 = ‘MINI VAN’
elseif selectRandomVehicle3.model == “ISSI2” then
veh3 = ‘ISSI’
elseif selectRandomVehicle3.model == “ZTYPE” then
veh3 = ‘Z-TYPE’

1 Like

Not going to lie, that elseif code is disgusting

All I did was add more lines to the existing one on the source code. I didn’t waste my time making it look prettier than it already.

but yes you could rewrite it completely if you wanted to and even do it without the vehicle display name. It’d be a hell of a lot more efficient. however I’m just trying to help the people who are trying to add vehicles to the existing code.

i cant for the life of me to get a payment system in any ideas?

what line to you add this in the chopshop_cl.lua?

how do you disable a row? i put a # at the start of row 52 and script stopped working… looks like it says selectRandomVehicle = nil already maybe they updated it, either way im still getting the error code UPDATE I JUST DELETED LINE 52 and it worked

In lua, -- is the method of commenting, not #.

thanks!!!

local src = source
local xPlayer = ESX.GetPlayerFromId(source)
if config.esxpayment or config.vrppayment or config.isrppayment then
    if config.esxpayment then 
        print("You have ESX Payment Activated!")
    elseif config.vrppayment then
        print("You have VRP Payment Activated!")
    elseif config.isrppayment then
        print("You have ISRP Payment Activated!")
    end
else
    print("You have no Payment options selected, will continue without a Payment method!")
end
xPlayer.addAccountMoney('black_money', price)
TriggerClientEvent("chatMessage", src, tostring("^4Chop Shop^0: you recieved ^2$"..price.."^0 for Chopping this Vehicle^0"))   end)

That should resolve adding the payment method for esx.