function cam ()
setCameraMatrix(214.28958129883+math.random(1,5), 1865.3023681641+math.random(5,9), 13.140625, 180, 285, 0, 0)
ped = createPed (0, 214.10000610352, 1875.9000244141, 13.10000038147 )
setPedAnimation( Dark Romeo, "46", "WOMAN_walknorm")
end
addEventHandler ("onClientResourceStart",resourceRoot,cam)
addEventHandler("onClientRender", getRootElement(),
function()
local x, y, z = getElementPosition(ped)
local x2, y2, z2 = getElementPosition(localPlayer)
if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then
local sx, sy = getScreenFromWorldPosition(x, y, z+1.3)
if(sx) and (sy) then
local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2)
if(distance < 30) then
dxDrawText("سيرفر نجوم يرحب بكم", sx+2, sy+2, sx, sy, tocolor(0,0,0), 6.3-(distance/20), "arial", "center", "center")
dxDrawText("سيرفر نجوم يرحب بكم", sx, sy, sx, sy, tocolor(255,255,0), 6-(distance/20), "arial", "center", "center")
end
end
end
end)
شوف يمكن فى غلظه