MrDaGree/ELS-FiveM

Debug print seems to be broken at line 814

Closed this issue · 5 comments

Debugging return an impossible concatenation at line 814

https://imgur.com/a/oPUH7Pv

Is your utils.lua up to date? It appears it cannot get vehicle model name from checkCarHash and thats causing the issue.

yup, util.lua is up-to-date same version as your blob/master

lze3 commented

The error is definitely related to the debugPrint, but that shouldn't ever be called since the main issue that caused invalid index stuff was fixed.

Do you happen to be using OneSync Infinity?

nope i'm using OneSync normal with 64 slots (patreon 15$)

lze3 commented

Very weird.

There's a does_entity_exist call which shouldn't be true in the case that the entity is nil, so this isn't the reasoning.

Only other reasoning is the checkCarHash function returning nil (or, not returning at all, since there is no default return value). I should just set the return value to CARNOTFOUND, for consistency with actual GTA natives. Though, I can't seem to figure out how to repro this, so, no fix, only a workaround.