Jump to content

Attach to forklift


tonievalue

Recommended Posts

Posted

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.

  • MTA Team
Posted
17 minutes ago, NeXuS™ said:

Feel free to test it @CodyJ(L), works as it is supposed to work. :D

You might wanna re-read what he said, ;)

Posted
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

Posted (edited)

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.

Edited by NeXuS™
  • Like 1
Posted
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

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