GanJaRuleZ Posted January 4, 2012 Posted January 4, 2012 Is there an function or an example to turn gm ( ghostmode ) on or off ? Thank you...
Al3grab Posted January 4, 2012 Posted January 4, 2012 for peds use -- Client-Side setElementCollidableWith for vehicles use -- Client/Server-Side setElementCollisionsEnabled
Castillo Posted January 4, 2012 Posted January 4, 2012 @Al3grab: Wrong, use setElementCollidableWith for vehicles aswell. Read the wiki note: Note: This function has unwanted effects on vehicles with drivers at the moment.
BinSlayer1 Posted January 4, 2012 Posted January 4, 2012 are you sure you're looking for a "function" to do that? I think you want to use race's built-in ghostmode which is triggered by the /ghostmode command Also, even if you don't want the command.. There's also a scripting way to toggle ghostmode for specific player elements. Go to the bottom of this page: https://wiki.multitheftauto.com/wiki/RU/Resource:Race
Al3grab Posted January 5, 2012 Posted January 5, 2012 @Al3grab: Wrong, use setElementCollidableWith for vehicles aswell.Read the wiki note: Note: This function has unwanted effects on vehicles with drivers at the moment. yes but setElementCollisionsEnabled is for both sides
Castillo Posted January 5, 2012 Posted January 5, 2012 And also it doesn't work for what he requires, so what's the point?
TwiX! Posted January 6, 2012 Posted January 6, 2012 original command /ghostmode not work in "race" gamemode, working only in 1.0.5 setElementCollidableWith Only available client-side for 1.0.x (Wiki ) its problem for all )
BinSlayer1 Posted January 6, 2012 Posted January 6, 2012 original command /ghostmode not work in "race" gamemode, working only in 1.0.5setElementCollidableWith Only available client-side for 1.0.x (Wiki ) its problem for all ) How come? I only tested it the other day in MTA 1.3 nightly Anyway.. There is no need for any collision-toggling functions as 'race' has already customized then very nicely and friendly so all you have to do is set element data to the player.. Check the wiki link (about race) I posted a few posts back edit: this basic line will toggle ghostmode on :') setElementData( thePlayer, "overrideCollide.uniqueblah", 0, false )
TwiX! Posted January 7, 2012 Posted January 7, 2012 original command /ghostmode not work in "race" gamemode, working only in 1.0.5setElementCollidableWith Only available client-side for 1.0.x (Wiki ) its problem for all ) How come? I only tested it the other day in MTA 1.3 nightly Anyway.. There is no need for any collision-toggling functions as 'race' has already customized then very nicely and friendly so all you have to do is set element data to the player.. Check the wiki link (about race) I posted a few posts back edit: this basic line will toggle ghostmode on :') setElementData( thePlayer, "overrideCollide.uniqueblah", 0, false ) its not work i use it on last version - mta 1.2 its not work if put in meta ghostmode = true or false /ghostmode not work if i remove in meta.xml "ghostmode = true or false" just delete this line, its working
BinSlayer1 Posted January 7, 2012 Posted January 7, 2012 1.3 and 1.2 share the same resources So you must have done something wrong or you've edited the gamemode http://code.google.com/p/mtasa-resources/downloads/list
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