#How to create user
1 messages · Page 1 of 1 (latest)
use the createracinguser command, there is an explanation in the readme file
Are you on the latest version? Released yesterday?
yes
Did you check if it was successfull or just look at the error and assume it wasnt?
You posted only part of the error message so it's impossible to know
i fix it thank so much but i have another error
How did you fix it?
when i start a race with money it gives me this error and dont start
in ox lib
Ox lib was causing an issue for the command?
yes it was false in the config
Did you change the money types to "money" from "cash" in the config, as mentioned in the readme?
ah ok
Well, I don't really know how to fix it. I don't run an ESX server so can't really test my way to this
if you know ESX then please help out with the esx bridge
ok i will try to fix it
done
function canPay(src, moneyType, cost)
local xPlayer = ESX.GetPlayerFromId(src)
if xPlayer then
local account = xPlayer.getAccount(moneyType)
if account and account.money >= cost then
return true
else
return false
end
else
print("Player not found for source: " .. tostring(src))
return false
end
end
Wont it always return false now?
