#cw-vehicleswap garage

1 messages · Page 1 of 1 (latest)

boreal charm
#

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

GitHub

Garage system for ESX & QBCore. Contribute to reyyghi/rhd_garage development by creating an account on GitHub.

mild thorn
#

They vehicles will end up in the garage you set in the config for the specific swap location

boreal charm
#

perfect thank you very much

#

I hadn't seen the garage config

boreal charm
#

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.

mild thorn
#

doestn't Functions.HasItem return a boolean?

on line 8 it's comparing the result to a price

boreal charm
#

How can I fix it?

mild thorn
#

I don't really remember the QBcore inventory shit 😅

#

I mostly use Ox

boreal charm
#

I use ox inventory in qbcore

mild thorn
#

Then you can probably set it up with Ox inventory instead