Mature Posted January 28, 2020 Share Posted January 28, 2020 Hello, I am trying to create a function that if an object enters a colShape, its element will appear, as if it were a common player. Link to comment
NoviceWithManyProblems Posted January 29, 2020 Share Posted January 29, 2020 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 Patrick Posted January 29, 2020 Moderators Share Posted January 29, 2020 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
NoviceWithManyProblems Posted January 29, 2020 Share Posted January 29, 2020 35 minutes ago, stPatrick said: You can't cancel this event. ok 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