someone
someone
it would fix this error because GetItemCount always returns number instead of boolean so there is no possibility for this error to happen again
you can edit it in **modules/weapon/client.lua**
bump
Yeah, it should noted, but there's one thing. Why the same data passed to RegisterNUICallback cb function doesn't crash the game?
> I would prefer this implementation to be closer to what's already present in https://github.com/overextended/ox_inventory/blob/e63c59e0bf7ae6180a4664b22a5e23fd5c27380b/modules/hooks/server.lua It's based on ox_inventory's hooks. What would you want to change here?
i will test and push changes when i get home
Of course
@Ehbw done
> Any benchmark to compare the performance of using this instead of doing the size in Lua ? I did a benchmark and c++ version is faster than Lua. ```...