The Dra
function ClickAllObject( theButton, theState, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld )
local playerX, playerY, playerZ = getElementPosition( localPlayer )
local hit, x, y, z, clickedWorld = processLineOfSight ( playerX, playerY, playerZ, worldX, worldY, worldZ )
if hit then
outputChatBox(tostring(clickedWorld).." - "..tostring(getElementType(clickedWorld)).." - "..tostring(getElementModel(clickedWorld)) )
if (getElementType(clickedWorld)=="object") and (getElementModel(clickedWorld)==1345) then
outputChatBox("true")
else
outputChatBox("false")
end
else
outputChatBox("false #2")
end
end
addEventHandler( "onClientClick", root, ClickAllObject )
gon
كل ما اضغط علي الاوبجكت المقصدود يطلعلي false
وما يطلعلي true
والله اتمني احد يسداعدني