NeveR Posted August 18, 2011 Share Posted August 18, 2011 Hi guys, i need the cbug (glitch) script thanks Link to comment
JR10 Posted August 18, 2011 Share Posted August 18, 2011 If there is something like that, then you will find it on the community, don't ask here. search here: https://community.multitheftauto.com/index.php?p=resources Link to comment
TAPL Posted August 18, 2011 Share Posted August 18, 2011 (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 August 19, 2011 by Guest Link to comment
JR10 Posted August 18, 2011 Share Posted August 18, 2011 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) Link to comment
NeveR Posted August 18, 2011 Author Share Posted August 18, 2011 Which file i have to edit? Link to comment
JR10 Posted August 18, 2011 Share Posted August 18, 2011 My code is client, so add it to a client sided script. Link to comment
NeveR Posted August 18, 2011 Author Share Posted August 18, 2011 Im new in mta can u create the file for me please? Link to comment
JR10 Posted August 18, 2011 Share Posted August 18, 2011 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. Link to comment
NeveR Posted August 18, 2011 Author Share Posted August 18, 2011 Ok, thanks, but where i have to put the files?? into resources??? Link to comment
JR10 Posted August 18, 2011 Share Posted August 18, 2011 A new file in resources. OMG dude, learn first, before trying to do anything. Link to comment
Castillo Posted August 18, 2011 Share Posted August 18, 2011 JR10, if I'm right, Cbug is what TAPL posted, not flying cars, jumping high and so on. Link to comment
NeveR Posted August 18, 2011 Author Share Posted August 18, 2011 I created the file meta.xml and c-bug.lua into resources but it does not work Link to comment
TAPL Posted August 18, 2011 Share Posted August 18, 2011 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 Link to comment
JR10 Posted August 19, 2011 Share Posted August 19, 2011 I gave you a meta for client.lua not c-bug.lua. P.S:What I posted maybe not what you want, as Castillo pointed. Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 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? Link to comment
JR10 Posted August 19, 2011 Share Posted August 19, 2011 Just a file, and FFS, learn the basics before trying, to do anything again. Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 I need the cbug script for play basemode, could someone create it for me?? Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 please, tell me if i do it correctly. here the file: http://solidfiles.com/d/bdb31/ Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 i put the cbug.zip file into resources and in mtaserver.conf: "" but it does not work Link to comment
JR10 Posted August 19, 2011 Share Posted August 19, 2011 Why putting it in startup, just type start cbug. Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 If i'll start it in console, it ill work? Link to comment
NeveR Posted August 19, 2011 Author Share Posted August 19, 2011 the scrip does not work 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