السلام عليكم
ابي اصحح الكود
function onMarkerHit5(playerEnd)
local account1 = getPlayerAccount(root)
if getElementHealth(car) <= 700 then
destroyElement(car)
outputChatBox("Your vehicle health is 70 you are deposited", root, 255, 0, 0) return end
if getElementData(root, "driverTestMarker4") == false then return end
if (getElementType (playerEnd) == "vehicle") then
if (source == markerEnd) then
destroyElement(markerEnd)
outputChatBox("Welcome", root, 255, 0, 0)
if account1 then
if getElementData(root, "driverTestMarker4") == true then
setAccountData(account1, "Name", true)
end
end
end
end
end
addEventHandler("onMarkerHit", getResourceRootElement(), onMarkerHit5)
انا مسوي ماركر لما تكون الداتا Name موجودة
يظهر في الشات Yes
لو مو موجوده
no
علي طول تظهر no
وانا اكون لامس الماركر markerEnd
اللي يعطي الداتا
والسلام خير ختام