Jump to content

Detecting Vehicle in Marker


Syntrax#

Recommended Posts

Posted

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 :cry:

Nothing is impossible when you acquire the knowledge
 
Posted

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.

  • 1 month later...
Posted
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
Posted

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 

  Tutorials  4x 

 

Posted
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
 

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