- 18
- 0
Как сделать, чтоб он определил игрока в машине и вытащил его из него
Код:
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)
if result then
sampSendChat("/me открыл дверь и высадил из машины")
sampSetChatInputEnabled(1)
wait(1500) sampSetChatInputText("/ceject ")
end
end
end