Jump to content

godmode


orcun99

Recommended Posts

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 by orcun99
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...