orcun99 Posted March 25, 2018 Share Posted March 25, 2018 (edited) client.lua local godModeState = false function forceLightsOn() godModeState = ( not godModeState ) outputChatBox ( "God Mode is now ".. ( godModeState and "Enabled" or "Disabled" ) ..".", 0, 255, 0 ) end if ( godModeState ) then cancelEvent ( ) end addEventHandler ( "onClientPlayerDamage", localPlayer, togdamage ) here my code but didn't work I tried fall out builds or car bomb but still have -health point and one more think I need if player godmodestate then he can't damage other users and I want the player to write in immortal mode on his head notice I edit on f1 freeroam panel lightson: wndMain = { 'wnd', text = 'Freeroam Panel | F1', x = 10, y = 150, width = 280, controls = { {'btn', id='playergrav', text='Wheels Settings', window=wndGravity, width = 260}, {'br'}, {'chk', id='lightson', text='GodMode', onclick=forceLightsOn, x = 10}, }, Edited March 25, 2018 by orcun99 Link to comment
Discord Moderators Pirulax Posted March 28, 2018 Discord Moderators Share Posted March 28, 2018 Please paste in the 'togdamage' function. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now