You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently calling a native with too large of a value (such as SetPedComponentVariation(ped, 12, 1, 0, 0) where 12 isn't a valid component id) will error with arg[1]: value too large, but this doesn't report the native used which can make it hard to debug what the error is.
Normal native execution fails would include the native hash of the native that was called to cause the error
It normally has a stack trace attached but sometimes it doesn't show the stack trace. I opened a similar issue the first day the change was merged, and they've agreed that it would be okay to have the native hash included.
Segment
n/a
Importancy
Unclear or unintuitive
Improvement request
Currently calling a native with too large of a value (such as
SetPedComponentVariation(ped, 12, 1, 0, 0)
where 12 isn't a valid component id) will error witharg[1]: value too large
, but this doesn't report the native used which can make it hard to debug what the error is.Normal native execution fails would include the native hash of the native that was called to cause the error
fivem/code/components/citizen-scripting-lua/src/LuaScriptNatives.cpp
Lines 474 to 476 in 49406c4
Area(s)
FiveM, Natives
Additional information
No response
The text was updated successfully, but these errors were encountered: