السلام عليكم شباب
المهم
انا عملت مود مو مهم المهم انو ما ياخذ الفلوس
function teleportPlayer()
if(source == GUIEditor.staticimage[1]) then
local PlayerMoney = getPlayerMoney(source)
if ( PlayerMoney >= 500) then
takePlayerMoney(source,500) --- وهنا بعد
outputChatBox ( "تم ", getRootElement(), 255, 0, 0, true )
local teleportX, teleportY, teleportZ = 1644.26147, -2256.60547, 13.32457
setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ)
else
outputChatBox("ليس معك ما يكفى", source, 255, 0, 0, true)
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
end
end
addEventHandler("onClientGUIClick", root, teleportPlayer)