6jorn_
Member
is it possible to draw a line from your own coordinates to the other player?
i have something like this now.
before this I write give the id of myself and the other player so that it can draw a line from coordinate XY to XY but it doesnt work.
i have something like this now.
before this I write give the id of myself and the other player so that it can draw a line from coordinate XY to XY but it doesnt work.
Code:
function gfx(arg,posX,posY)
if #arg > 0 then
id = tonumber(arg)
result, ped = sampGetCharHandleBySampPlayerId(id)
if result then
myX, myY, myZ = getCharCoordinates(ped)
while true do
renderDrawLine(myX, myY, posX,posY, 2.0, 0xFF0000)
wait ( 0 )
end
end
end
end