Help me out please!

Hi All,
When im joining my own fivem server i get some errors i cant fix.

      MainThrd/ ^1CUSTOM ERROR: PlayerPedId cache mismatch!^7
      MainThrd/ > FormatStackTrace (@esx_boilerplate/natives.lua:41)
      MainThrd/ > ReportError (@esx_boilerplate/natives.lua:592)
      MainThrd/ > [global chunk] (@baseevents/deathevents.lua:18)
      MainThrd/ > fn (@esx_boilerplate/natives.lua:122)

my esx_boilerplate natives.lua file line 41

function FormatStackTrace(…)

return Citizen.InvokeNative(FORMAT_STACK_TRACE & 0xFFFFFFFF, nil, 0, Citizen.ResultAsString())

end

line 119:

local createThread = Citizen.CreateThread
function Citizen.CreateThread(cb, …)
return createThread(function(…)
xpcall(cb, Traceback, …)
end, …)
end

line 592:

function ReportError(err, extraData)
local formattedStackTrace = FormatStackTrace()
if formattedStackTrace then
formattedStackTrace = formattedStackTrace:gsub(“%^%d”, “”)
end

deathevents.lua line 18

    ReportError("PlayerPedId cache mismatch!", { PlayerPedId = PlayerPedId(), ped = ped, lastPed = lastPed, GameTimer = GetGameTimer() })

Hope that someone can help me out to get the errors removed!

Whats your framework version and what did you do to get this error ?

latest esx legacy is the framework. dont know what i did thats throw me this error

Have you cleared yor Server cache

No only fivem cache… can you tell me what to do?

@KJALMELO go to your FTP Browser then go to your Base folder in my case ESXLegacy the go to cache the open files select all and delete and there you go.

But please make sure your Server ist Oflline before you do it.

Path in short form : ESXLegacy/cache/files/**

Got it, changed some files @ baseevents by mistake. restored it and the esx_boilerplate errors are gone!

Thanks for your information :slight_smile:

p.s can you help me what i need to do to when i put on my bag (from clothesstore) it gives me some extra inventory space?

now when i put on my bag the kilos remain the same.

@CriticallZ you mean you want to extend your inventory ?

go to es_extended (ESX) in the Config and change MaxWeight there ESX Overrides some inventory with his weight system

yeah i know that i can set the MaxHeight higher but thats not what i want.

when you buying a backpack in the clothesstore the inventory weight needs to go up with 10 extra kg or something like that… you can put on you r bag just like a hat or glasses you get what i mean?

when i look into my esx_skin config.lua file i see this code…

Config = {}

Config.Locale = ‘en’

Config.BackpackWeight = {

[40] = 16, [41] = 20, [44] = 25, [45] = 23

}

i did put the local Config.BackpackWeight into es_extended like this but does nothing:

Config.BackpackWeight = 16

What script are we talking about if i may ask you

No loose script… thought with the new legacy system it was already there by default. but I was wrong about that and will always have to use a separate script?

i played on a server thats got the function i tell about… i you put on your bag you get 10kg extra to carry. but i didnt see any scripts in there resource list…

That’s why I thought they had done it through ESX SKIN / SKINCHANGER as a feature when you put on your bag you can carry extra weight.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.