Tails Posted January 11, 2016 Posted January 11, 2016 Hello, Is it possible to set the height of a polygon created with createColPolygon? I couldn't find anything about it on the wiki page. While we're at it, is there anyway to draw on the sides of a polygon or any colshape, and can you make them actually collidable, so people can't pass through them? Thanks in advance Discord: its.tails
Moderators IIYAMA Posted January 11, 2016 Moderators Posted January 11, 2016 no, not directly. But you can use: "onClientRender" + https://wiki.multitheftauto.com/wiki/Is ... inColShape + getElementPosition + if Z < 300 then (+ getTickCount() if you want to use less cpu and memory) Reset player? If you save the last position every execution of the code and the player is inside the collision, you can reset the player back to that position. Drawing? Drawing a line 2D on your radar, I don't know. But you can study the tactic's script for that. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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