Jump to content

[Help] ColShape and Object


Mature

Recommended Posts

 


local colShape = createColSphere(0, 0, 5, 5)

addEventHandler("onColShapeHit", colShape, function(he, md)
    if getElementType(he) == "player" then
    	-- what will be displayed
    else
    	cancelEvent() 
    end
end)

to view colShape "grid" or make it use resource

https://community.multitheftauto.com/index.php?p=resources&s=details&id=3804

commands: /editcol /showcol (I think so,  I don't know this by heart)

Link to comment
  • Moderators
1 minute ago, NoviceWithManyProblems said:

 


local colShape = createColSphere(0, 0, 5, 5)

addEventHandler("onColShapeHit", colShape, function(he, md)
    if getElementType(he) == "player" then
    	-- what will be displayed
    else
    	cancelEvent() 
    end
end)

to view colShape "grid" or make it use resource

https://community.multitheftauto.com/index.php?p=resources&s=details&id=3804

commands: /editcol /showcol (I think so,  I don't know this by heart)

You can't cancel this event.

Link to comment

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...