How does the item payout work for you? I’ve tested everything and it’s not working. I even set it to 0 km and still nothing happens. Why is everything broken for you after the 6.2.3 update? And with the 6.2.4 database, it doesn’t work either — you can’t join races because it doesn’t recognize users. What is going on? And it’s not ESX Legacy’s fault, it’s your update. I’ll also send my item payout file — you can check it, but it still doesn’t work
#Item payout
1 messages · Page 1 of 1 (latest)
And you tried the latest?
6.2.5 seems to have addressed issues with QB at least
After version 6.2.3, this problem started: error_lacking_user = "You are lacking a racing app user
I also tested version 6.2.6.
It's probably related to the ESX bridge then. I don't know ESX, so someone that does would need to help check that out.
I made a 6.2.7 that adds some debug logs in ESX bridge but honestly they won't fix anything, only show where it's failing to fetch data.
I'd need database logs and for you to tell me what you did that causes it to show
Alright
I installed the new version 6.2.7, and it still doesn’t work. I can’t create races or join them. Debug doesn’t show anything at all — there are no prints or logs.
Post server logs
There should be warnings as of 6.2.7. Like I said earlier, the update wont fix anything, just add logs.
I am gonna assume it's due to this
The ESX character id probably fucked
Have you tried dropping the tables and reinstalling the databse stuff?
I’ve already done that — I dropped the database and installed a new one. But I understand that ESX requires a license:........ instead of a character ID. Could that be related to the issue, since it can’t find me in the database?
Okay, I can use version 6.2.3, but how do I configure it so the item payout works?
The item payouts work for me. Might be related to the other issues you're having.
It could be that ESX isn't set up for ox inventory, or there's a lack of a esx->ox inventory bridge. Since the racingapp bridge uses ESX inventory. SHould probably just force ox inventory there anyway 🤔
pushed an update that adds direct ox inventory support for esx
[ script:cw-racingapp] No Source was included. Defaulting to Automated
[ script:cw-racingapp] Is first user: false
[ script:cw-racingapp] Getting racer names for serverid 1
[ script:cw-racingapp] Racer citizenid char1:3a9c6f23000f72e648c85989c6276d9838526d0a
[ script:cw-racingapp] [RADB] getRaceUsersBelongingToCitizenId | citizenId: char1:3a9c6f23000f72e648c85989c6276d9838526d0a
[ script:cw-racingapp] Racer Names found: [{"races":0,"racerid":"RC-0D7PWB","createdby":"char1:3a9c6f23000f72e648c85989c6276d9838526d0a","citizenid":"char1:3a9c6f23000f72e648c85989c6276d9838526d0a","wins":0,"ranking":0,"tracks":0,"racername":"Oziyss","crypto":0,"revoked":0,"id":47,"auth":"god","active":1,"lasttouched":1776276637000.0}]
[ script:cw-racingapp] [RADB] getRaceUserByName | racerName: Oziyss
[ script:cw-racingapp] [RADB] getCryptoForRacer | racerName: Oziyss
[ script:cw-racingapp] [RESDB] getTrackRaceStats | datespanDays: 100
[ script:cw-racingapp] [RESDB] getTrackRaceStats | returning fresh result, count: 9
[ script:cw-racingapp] [RESDB] getRacerHistory | racerName: nil
[ script:cw-racingapp] [RESDB] getTopRacerWinnersAndWinLoss | days: 100, amountOfRacers: 5, cacheKey: 100
[ script:cw-racingapp] [RADB] getActiveRacerName | citizenId: char1:3a9c6f23000f72e648c85989c6276d9838526d0a
okey i wll try
Server logs
When is the message showing?
I changed a few things in the script myself.
THe current issue is that ESX sucks balls and saves their id with a ":" in it
Pushed a new update. That should fix the issue you had with databse checks.
It was because I was sanitizing the lookup, for security, but ESX is shit so it wont work with their character ids
Wait, did you add what I fixed or what?
Ok, now version 6.2.9 works, but now we need to check if the items are working or if they are given after finishing the race.
Make sure to run with debug on and provide logs so we can see setup and finish 👍
and not giving items after race
Oh I thing I know
Fxmanifest, add
'shared/itemPayouts.lua',
in the shared_scripts
Would explain why it works for me, cause I don't use the default fxmanifest
Now everything works and items are giving after race

