Jump to content

Attach to forklift


value

Recommended Posts

Just attach an element to the vehicle, and use the fork by your keyboard. The attached object will move with the fork. Yes, I tested it.

local forkVeh = createVeh(getVehicleIDFromName("Forklift"), 0, 0, 10)
local testObject = createObject(1337, 0, 0, 0)
attachElements(testObject, forkVeh)

And as you use your bind to move the fork up, the testObject will also move with it.

Link to comment
12 hours ago, NeXuS™ said:

Just attach an element to the vehicle, and use the fork by your keyboard. The attached object will move with the fork. Yes, I tested it.


local forkVeh = createVeh(getVehicleIDFromName("Forklift"), 0, 0, 10)
local testObject = createObject(1337, 0, 0, 0)
attachElements(testObject, forkVeh)

And as you use your bind to move the fork up, the testObject will also move with it.

Okey, but any player can change bind in MTA menu (https://gyazo.com/61d6850aa4dc5e99a861e74df057b001), and i can't read player's bind's

Link to comment
1 minute ago, NeXuS™ said:

Mate, you dont have to control the movements of the fork, MTA does it itself. Just use ANY keybind to move the fork, and the attached element will move without any problem or script.

Okay, thanks mate :P

Link to comment

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