JR10 Posted August 18, 2011 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
TAPL Posted August 18, 2011 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
JR10 Posted August 18, 2011 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)
JR10 Posted August 18, 2011 Posted August 18, 2011 My code is client, so add it to a client sided script.
NeveR Posted August 18, 2011 Author Posted August 18, 2011 Im new in mta can u create the file for me please?
JR10 Posted August 18, 2011 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.
NeveR Posted August 18, 2011 Author Posted August 18, 2011 Ok, thanks, but where i have to put the files?? into resources???
JR10 Posted August 18, 2011 Posted August 18, 2011 A new file in resources. OMG dude, learn first, before trying to do anything.
Castillo Posted August 18, 2011 Posted August 18, 2011 JR10, if I'm right, Cbug is what TAPL posted, not flying cars, jumping high and so on.
NeveR Posted August 18, 2011 Author Posted August 18, 2011 I created the file meta.xml and c-bug.lua into resources but it does not work
TAPL Posted August 18, 2011 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
JR10 Posted August 19, 2011 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.
NeveR Posted August 19, 2011 Author 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?
JR10 Posted August 19, 2011 Posted August 19, 2011 Just a file, and FFS, learn the basics before trying, to do anything again.
NeveR Posted August 19, 2011 Author Posted August 19, 2011 I need the cbug script for play basemode, could someone create it for me??
NeveR Posted August 19, 2011 Author Posted August 19, 2011 please, tell me if i do it correctly. here the file: http://solidfiles.com/d/bdb31/
NeveR Posted August 19, 2011 Author Posted August 19, 2011 i put the cbug.zip file into resources and in mtaserver.conf: "" but it does not work
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