Hi I need a hand to change the garage after the swap, I tried to change it in server.lua but nothing happens. I'm using the rhd garage script I'll link you to the git hub. The cars end up in a garage named "sapcounsel" but it doesn't exist in my script.
Could you please help me?
https://github.com/reyyghi/rhd_garage
#cw-vehicleswap garage
1 messages · Page 1 of 1 (latest)
They vehicles will end up in the garage you set in the config for the specific swap location
I'm trying to use dirty money but I get an error
SCRIPT ERROR: @cw-vehicleswap/server/server.lua:24: attempt to compare number with nil
these are the parts of code that I modified
Leaving lines 5 and 6 as the originals removes the dirty money correctly, but I can also do it without having it.
Changing them as I did the script gives the error I described.
doestn't Functions.HasItem return a boolean?
on line 8 it's comparing the result to a price
How can I fix it?
I use ox inventory in qbcore
Then you can probably set it up with Ox inventory instead
or read up on Qbcore functions
https://docs.qbcore.org/qbcore-documentation/qbcore-resources/qb-inventory
Documentation for Overextended's resources for FiveM/RedM