Jump to content

Cbug script


NeveR

Recommended Posts

Posted (edited)

Server-Side

function resourceStart () 
    setGlitchEnabled ( "quickreload", true ) 
    setGlitchEnabled ( "fastmove", true ) 
    setGlitchEnabled ( "fastfire", true ) 
    setGlitchEnabled ( "crouchbug", true ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) 
  
function resourceStop () 
    setGlitchEnabled ( "quickreload", false ) 
    setGlitchEnabled ( "fastmove", false ) 
    setGlitchEnabled ( "fastfire", false ) 
    setGlitchEnabled ( "crouchbug", false ) 
end 
addEventHandler ( "onResourceStop", getResourceRootElement ( ), resourceStop ) 

Meta

    

Edited by Guest
CiTLh.png
Posted
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setWorldSpecialPropertyEnabled ( "hovercars" , true ) 
setWorldSpecialPropertyEnabled ( "aircars" , true ) 
setWorldSpecialPropertyEnabled ( "extrabunny" , true ) 
setWorldSpecialPropertyEnabled ( "extrajump" , true ) 
end) 
  
addEventHandler("onClientResourceStop", resourceRoot, 
function ( ) 
setWorldSpecialPropertyEnabled ( "hovercars" , false) 
setWorldSpecialPropertyEnabled ( "aircars" , false) 
setWorldSpecialPropertyEnabled ( "extrabunny" , false) 
setWorldSpecialPropertyEnabled ( "extrajump" , false) 
end) 

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

Posted

Make a new file.

In it create two files, meta.xml, client.lua.

in meta.xml:

<meta> 
<script src = "client.lua" type = "client" /> 
</meta> 

in client.lua:

addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setWorldSpecialPropertyEnabled ( "hovercars" , true ) 
setWorldSpecialPropertyEnabled ( "aircars" , true ) 
setWorldSpecialPropertyEnabled ( "extrabunny" , true ) 
setWorldSpecialPropertyEnabled ( "extrajump" , true ) 
end) 
  
addEventHandler("onClientResourceStop", resourceRoot, 
function ( ) 
setWorldSpecialPropertyEnabled ( "hovercars" , false) 
setWorldSpecialPropertyEnabled ( "aircars" , false) 
setWorldSpecialPropertyEnabled ( "extrabunny" , false) 
setWorldSpecialPropertyEnabled ( "extrajump" , false) 
end) 

Btw this script will make you jump high, jump high with a bike, cars float on water, and cars fly.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

Posted

JR10, if I'm right, Cbug is what TAPL posted, not flying cars, jumping high and so on.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

did you start the resource?

type in Console or in F8 in Game ( start ResourceNameHere )

*ResourceNameHere is name of the folder you have put in files c-bug.lua and meta.xml

CiTLh.png
Posted
did you start the resource?

type in Console or in F8 in Game ( start ResourceNameHere )

*ResourceNameHere is name of the folder you have put in files c-bug.lua and meta.xml

So i have to creare a zip file, with c-bug.lua and meta.xml inside?

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...