Syntrax# Posted August 9, 2015 Posted August 9, 2015 Hello, I have been trying to detect a random empty vehicle within a colrectangle while it is being towed by a towtruck.But the problem is i can't get it to detect the empty vehicle that is being towed.I can get the towtruck to get detected since that is simple but the empty vehicle is a huge problem for me.I'm planning to make an Impound script. Please help me if you want to since i'm out of idea's Nothing is impossible when you acquire the knowledge
Dealman Posted August 9, 2015 Posted August 9, 2015 Just use this to see if the vehicle's inside; isElementWithinColShape If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
Syntrax# Posted September 15, 2015 Author Posted September 15, 2015 Just use this to see if the vehicle's inside; isElementWithinColShape Can You Maybe Help me abit with the starting,since i'm struggeling to detect the empty vehicle within the Colshape,I'm really reaching my end of possibilities to detect this vehicle Nothing is impossible when you acquire the knowledge
Moderators IIYAMA Posted September 15, 2015 Moderators Posted September 15, 2015 This is how it should be used. if isElementWithinColShape(vehicle,colshape) then outputChatBox("YES!") else outputChatBox("NO!") end Although empty vehicles have sometimes no syncer. 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
Syntrax# Posted September 16, 2015 Author Posted September 16, 2015 This is how it should be used. if isElementWithinColShape(vehicle,colshape) then outputChatBox("YES!") else outputChatBox("NO!") end Although empty vehicles have sometimes no syncer. Ok will Give It A Try Nothing is impossible when you acquire the knowledge
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