local Marker = createMarker(1922.50562,-1760.24609,13.54688,"cylinder",1.5,255,255,0,170)
GUIEditor = {
button = {},
window = {},
memo = {}
}
addEventHandler ( "onClientMarkerHit", Marker,
function ( hitPlayer )
if hitPlayer == localPlayer and not isPedInVehicle( hitPlayer ) then
guiSetVisible( GUIEditor.window[1], true )
showCursor ( true )
guiSetInputEnabled ( true )
GUIEditor.window[1] = guiCreateWindow(222, 189, 610, 397, "في اي مدينه سوف تعيش", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(18, 183, 247, 110, "لاس فيغاس", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(322, 184, 248, 109, "لوس سانتوس", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(61, 38, 490, 105, "اذا كنت قد اخترت احد المدن فسوف تكون هذه هي مدينتك للأبد ", false, GUIEditor.window[1])
end
end
)
addEventHandler("onClientGUIClick",root,
function ()
if ( source == GUIEditor.button[2] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
elseif ( source == GUIEditor.button[1] ) then
setElementPosition ( localPlayer , 1916.07837,-1759.90369,13.54688)
end
end
)
Deativated
هيك يصير الكود ؟