جـرب الـكود * .
GUIEditor = {
memo = {},
button = {},
window = {},
}
GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true)
guiSetVisible( GUIEditor.window[1], false )
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1])
GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1])
GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1])
GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1])
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 )
addEventHandler("onClientMarkerHit",root,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
if ( source == marker ) then
if ( getElementModel ( localPlayer ) == 133 ) then
guiSetVisible( GUIEditor.window[1], true )
showCursor(true)
end
end
end
end
)