fivem
fivem copied to clipboard
feat(scripting/state): add GET_PLAYER_SERVER_ID_FROM_PED
This was a native I remember complaining about not existing a while ago and makes working with certain checkable events easier to work with (i.e. weaponDamageEvent and the sort)
This is meant to function somewhat like NetworkGetPlayerIndexFromPed
does on the client
Technically it is what NETWORK_GET_ENTITY_OWNER
does
maybe you could group both natives?
For such a simple thing I don't really feel like its really worth doing, you save a negligible amount of space (aprox 4 lines)
This is meant to function somewhat like NetworkGetPlayerIndexFromPed does on the client
What is the difference - why only 'somewhat'? Why does it need to have its own name instead of using the same name as the game function?
I thought that the native referring to PlayerIndex
instead of Player
would be confusing for a server side native, but if wanted I can rename it.