Jump to content

[DM] Ghost racer resource , add a button for disable it


Recommended Posts

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 by Guest
Link to comment
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

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
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...