JoeL248_Arg Posted August 7, 2016 Share Posted August 7, 2016 (edited) Sorry for the english i use google translator I need help for add to ghost racer resource a button for disable/enable it in dm server. It is annoying that this always on. Thanks if you can help me, i'm not scripter i have no idea how to do it and I have already tried but did not work. Resource link: https://community.multitheftauto.com/index.php?p ... ls&id=3799 I also could not put me in touch with the creator. Edited August 11, 2016 by Guest Link to comment
_DrXenon Posted August 7, 2016 Share Posted August 7, 2016 function ghostmode_on() local v = getPedOccupiedVehicle(localPlayer) -- Get her's Vehicle ID for index,vehicle in ipairs(getElementsByType("vehicle")) do --LOOP through all Vehicles setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the Other vehicles. end outputChatBox("You are now a Ghost \"{SMILIES_PATH}/icon_razz.gif\" alt=\"\" title=\"Razz\" />",thePlayer) end addCommandHandler("ghostmode", ghostmode_on) -- Credits to MTA wiki Link to comment
JoeL248_Arg Posted August 11, 2016 Author Share Posted August 11, 2016 I add it to playback_client but nothing happens.I do not know if I explain myself very well.What I need is that while I'm playing, for example, i press "F9" and the ghost appears/dissapears. It is a ghost that appears when you do a top in a map Link to comment
_DrXenon Posted August 11, 2016 Share Posted August 11, 2016 type /ghost to get ghost mode. Make sure that You added my function. If you want it for F9, replace; addCommandHandler("ghost",ghostmode_on) to bindKey("F9","down",ghostmode_on) Link to comment
JoeL248_Arg Posted August 11, 2016 Author Share Posted August 11, 2016 I get the message in the chat ,I also gave it admin rights,but nothing happens, sorry for the inconvenience. I think this function is to avoid hitting other cars, if so, this is not what I'm looking. it says in chat "You are now a ghost" that is, myself, and not the ghost racer, no? I need to change it to invisible or disappear it. Link to comment
JoeL248_Arg Posted August 21, 2016 Author Share Posted August 21, 2016 Sigo intentando, pero no puedo hacer nada 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