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 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
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) 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
JR10 Posted August 18, 2011 Posted August 18, 2011 My code is client, so add it to a client sided script. 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
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. 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
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. 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
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. 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
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. 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
NeveR Posted August 19, 2011 Author Posted August 19, 2011 I need the cbug script for play basemode, could someone create it for me??
JR10 Posted August 19, 2011 Posted August 19, 2011 Read the previous posts. 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
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/
JR10 Posted August 19, 2011 Posted August 19, 2011 Yes, you did. 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
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
JR10 Posted August 19, 2011 Posted August 19, 2011 Why putting it in startup, just type start cbug. 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
JR10 Posted August 19, 2011 Posted August 19, 2011 Lol, yes. 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
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