Ped GetPlayerPed(Player playerId)
Gets the ped for a specified player index.
local playerIdx = GetPlayerFromServerId(source) local ped = GetPlayerPed(playerIdx) -- act on the ped