Jump to content

[QUESTION] Attaching moving objects to a vehicle


NovaCrew

Recommended Posts

Posted

To do this, you will need to use the attachElements

 

Here is an example of how you can use the attachElements function to attach a ramp to a vehicle:

 

local ramp = createObject(1239, 0, 0, 0)  -- Create the ramp object
local vehicle = createVehicle(400, 0, 0, 0)  -- Create the vehicle
attachElements(ramp, vehicle, 0, 2, -1)  -- Attach the ramp to the vehicle

 

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