- 123
- 5
Spoiler:
if vxfullped.v then
local enPosGame = {getBodyPartCoordinates(8, handle)}
local point =
{
x = enPosGame[1] - 0.3,
y = enPosGame[2],
z = enPosGame[3]
}
local enPosScr = {convert3DCoordsToScreen(point.x, point.y, point.z)}
local distance = math.sqrt((math.pow((enPos[1] - myPos[1]), 2) + math.pow((enPos[2] - myPos[2]), 2) + math.pow((enPos[3] - myPos[3]), 2)))
renderFontDrawText(font, string.format('Speed: %.1f\nName: %s\nDistance: %.1f\nSkin: %d\nNPC: %s\nAFK: %s', getCharSpeed(handle), sampGetPlayerNickname(i), distance, getCharModel(handle), tostring(sampIsPlayerNpc(i)), tostring(sampIsPlayerPaused(i))), enPosScr[1], enPosScr[2], color)
end
I have this problem, when I activate the box the script exits. this is the code: