function Show(Open,No)
showCursor(No)
guiSetVisible(Open,No)
end
addEventHandler ("onClientGUIClick", root,
function()
if ( source == Take ) then
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then
triggerServerEvent('Game',localPlayer,localPlayer)
setGameSpeed(2)
end
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then
triggerServerEvent('Jump',localPlayer,localPlayer)
end
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[3] ) == true ) then
triggerServerEvent('Health10',localPlayer,localPlayer)
end
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[4] ) == true ) then
triggerServerEvent('Health',localPlayer,localPlayer)
end
elseif ( source == Exit ) then
Show(DrugWindows,false)
end
end
)
سيرفر
addEvent("Game",true)
addEventHandler("Game",root,
function ( )
end
)
addEvent("Jump",true)
addEventHandler("Jump",root,
function ( )
setElementData(source,'Jump',true)
setTimer(setElementData,100000,1,source,'Jump',false)
end
)
addEvent("Health10",true)
addEventHandler("Health10",root,
function ( )
setTimer(function ( )
local Health =
setElementHealth(source,(getElementHealth(source))+1)
end,500,1)
end
)
addEvent("Health",true)
addEventHandler("Health",root,
function ( )
setElementData(source,'DontKill',true)
setTimer(setElementData,100000,1,source,'DontKill',false)
end
)
بدي يخلي سرعه القيم للاعب فقطط