Hey, new to lua and Fivem scripting so i was looking for clarification on somethings. What is -1 when it comes to ped arguments? e.g
SetPedComponentVariation(GetPlayerPed(-1), 7, 115, 0, 0)
(GetPlayerPed(-1) is what im referencing. I assume this means get the source/players own ped.
Just realised that this is stated on the native reference. So, new question. Whats the difference between these two getPlayerPeds https://gyazo.com/7651c0d2bc3309b4d6cb1080e65abf91
I didn’t really know there was a two different Get_Player_Ped natives but going based on the argument for the CFX Get_Player_Ped it may take a server id and the other can take a client id?
PlayerPedId() also works for getting the current ped of the player
1 Like