Jump to content

getVehicleOccupants


Drakath

Recommended Posts

Posted

getElementData should not be returning a vehicle. Also, getVehicleOccupants returns a table.

Please do not PM me with scripting related question nor support, use the forums instead.

  • Moderators
Posted

Just as DNL291 said.

    local thisVehicle = getElementData (source, "car") 
    if isElement(thisVehicle) and #getVehicleOccupants(thisVehicle) ~= 0 then 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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