Как сделать, чтоб он определил игрока в машине и вытащил его из него
if isKeyDown(VK_MENU) and isKeyJustPressed(VK_4) then
local valid, ped = getCharPlayerIsTargeting(PLAYER_HANDLE)
if valid and doesCharExist(ped) then
local result, id = sampGetPlayerIdByCharHandle(ped)...