#Item payout

1 messages · Page 1 of 1 (latest)

halcyon cloud
#

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

zinc cypress
#

And you tried the latest?

6.2.5 seems to have addressed issues with QB at least

halcyon cloud
#

I also tested version 6.2.6.

zinc cypress
#

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

halcyon cloud
#

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.

zinc cypress
#

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?

halcyon cloud
#

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?

zinc cypress
#

No idea

#

If you enable debug and provide database logs

#

that might help

halcyon cloud
#

Okay, I can use version 6.2.3, but how do I configure it so the item payout works?

zinc cypress
#

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

halcyon cloud
#

[ 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

halcyon cloud
halcyon cloud
zinc cypress
#

Server logs

halcyon cloud
#

I’m trying to change things, but it still throws a crappy error anyway.

zinc cypress
#

When is the message showing?

halcyon cloud
#

trying to join a race.

#

or setup race

#

now working

zinc cypress
#

It shouldn't

halcyon cloud
#

I changed a few things in the script myself.

zinc cypress
#

THe current issue is that ESX sucks balls and saves their id with a ":" in it

halcyon cloud
#

but don't give things for race

zinc cypress
#

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

halcyon cloud
zinc cypress
#

No idea what you did, I ain't looking at all that

halcyon cloud
zinc cypress
#

Make sure to run with debug on and provide logs so we can see setup and finish 👍

zinc cypress
#

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

halcyon cloud
#

Now everything works and items are giving after race