- 5,058
- 1,467
- Версия MoonLoader
- .026-beta
превратите пожалуйста этот огрызок в полноценный код
Lua:
local valid, ped = getCharPlayerIsTargeting(PLAYER_HANDLE)
if valid and doesCharExist(ped) then
local result, id = sampGetPlayerIdByCharHandle(ped)
if result and isKeyDown(VK_I) then
sampSendChat(string.format("/lcontract offer %s", id) )
end