- 211
- 39
- Версия SA-MP
-
- Любая
Как можно изменить дальность прорисовки боксов командой?
WH BOX:
require 'lib.moonloader'
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
while isKeyDown(VK_Z) and not sampIsChatInputActive() and not sampIsDialogActive() do
wait(0)
for k,v in ipairs(getAllChars()) do
local posX, posY, posZ = getCharCoordinates(v)
local pPosX, pPosY, pPosZ = getCharCoordinates(playerPed)
if getDistanceBetweenCoords3d(posX, posY, posZ, pPosX, pPosY, pPosZ) <= 300.0 then
local wPosX, wPosY = convert3DCoordsToScreen(posX, posY, posZ)
res, id = sampGetPlayerIdByCharHandle(v)
if res then
renderDrawBoxWithBorder(wPosX - 65 / 2, wPosY - 60, 65, 120, 0x00FFFFFF, 2, 0xFF00FF00)
end
end
end
end
end
end