ما ضبط
الكلنت
local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150)
setMarkerColor ( marker, 158, 0, 0, 215 )
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1])
GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1])
GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1])
GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1])
GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1])
GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1])
guiSetVisible( GUIEditor.window[1],false )
end
)
addEventHandler ("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[1] ) then
setWorldSpecialPropertyEnabled ( "aircars", true )
outputChatBox("تم تشغيل الطيران")
end
end
)
addEventHandler ("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[6] ) then
setWorldSpecialPropertyEnabled ( "aircars", false )
outputChatBox("تم أيقاف الطيران")
_Close ( )
end
end
)
addEventHandler ("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[5] ) then
setWorldSpecialPropertyEnabled ( "hovercars", true )
outputChatBox("تم تشغيل المشي فوق الماء")
_Close ( )
end
end
)
addEventHandler ("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[4] ) then
setWorldSpecialPropertyEnabled ( "hovercars", false )
outputChatBox("تم أيقاف المشي فوق الماء")
_Close ( )
end
end
)
addEventHandler ("onClientGUIClick",resourceRoot, function ( )
if ( source == GUIEditor.button[5]) then
triggerServerEvent ( "setarmor", localPlayer)
_Close ( )
elseif ( source == GUIEditor.button[6] ) then
_Close ( )
triggerServerEvent ( "setahealth",localPlayer)
elseif source == GUIEditor.button[3] then
_Close ( )
outputChatBox("هنا الكلام")
elseif ( source == GUIEditor.button[5]) then
_Close ( )
triggerServerEvent ( "setarmor", localPlayer)
elseif ( source == GUIEditor.button[6] ) then
_Close ( )
triggerServerEvent ( "setahealth",localPlayer)
elseif source == GUIEditor.button[2] then
_Close ( )
outputChatBox("تم أعطاءك دم ")
end
end
)
addEventHandler("onClientGUIClick",resourceRoot,
function()
if source == GUIEditor.button[7]then
_Close ( )
outputChatBox("تم أعطاءك درع")
end
end)
function _Close( )
guiSetVisible(GUIEditor.window[1], false)
showCursor ( false )
end
addEventHandler ("onClientMarkerHit",myMarker,
function (element)
if (element) == localPlayer then
guiSetVisible (GUIEditor.window[1],true)
showCursor ( true )
end
end,false
)
local Url = "1.png" ---
local zUP = 17 ---- ارتفأع الصورة
addEventHandler( "onClientRender", root, function ( )
local x, y, z = getElementPosition( myMarker )
local Mx, My, Mz = getCameraMatrix( )
if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then
local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 )
if ( WorldPositionX and WorldPositionY ) then
dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url )
end
end
end )
الميتا
واسم الصورة 1
والصورة ما ظهرت