I set up the racing app every thing works but when I go to make a create a race I get this error in the server console
[ script:cw-racingapp] SCRIPT ERROR: @cw-racingapp/server/main.lua:1273: attempt to index a nil value (field '?')
[ script:cw-racingapp] > IsPermissioned (@cw-racingapp/server/main.lua:1273)
[ script:cw-racingapp] > ? (@cw-racingapp/server/main.lua:1369)
[ script:cw-racingapp] > handler (@cw-racingapp/server/functions.lua:11)
[ script:cw-racingapp] > rawQuery (@oxmysql/dist/build.js:26467)
[ script:cw-racingapp] > processTicksAndRejections (node:internal/process/task_queues:96)
I did not change anything other then the config stuff and the only thing that I found to fix it was by making both calls look like this not sure if maybe the sql is not pulling the create thing it needs or not even tho I have god not sure what else it could be.
RegisterServerCallback('cw-racingapp:server:isAuthorizedToCreateRaces', function(source, TrackName)
return { nameAvailable = IsNameAvailable(TrackName) }
end)
RegisterNetEvent('cw-racingapp:server:createLapRace', function(RaceName, RacerName, Checkpoints)
if IsNameAvailable(RaceName) then
TriggerClientEvent('cw-racingapp:client:startRaceEditor', source, RaceName, RacerName, nil, Checkpoints)
else
TriggerClientEvent('cw-racingapp:client:notify', source, Lang("race_name_exists"), 'error')
end
end)



