SA-MP Forums Archive
How to load a forklift ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to load a forklift ? (/showthread.php?tid=402237)



How to load a forklift ? - ZackBoolaro - 25.12.2012

Hello there guys, as you may know yesterday i released my pizza boy job FS, now i'm making a Courier Company job. And i have one question: How to load a froklift like in NGRP when you /loadforklift in Crate Island you get a crate on your forklift.

The thing is: i want when i type: /loadpackages a 2973 object to apper on the forklift and when i type /deliverpackages the object dissapperas from the forklift. How can i do that ?


Re: How to load a forklift ? - Arnoo - 25.12.2012

You could attach a box to the player , when you exit the vehicle or delive it deletes the box.
Its just something I made up , wont work I think.


Re: How to load a forklift ? - ZackBoolaro - 25.12.2012

AttachObjectToVehicle should work for that i guess but then how should i destroy the object ?


Re: How to load a forklift ? - XtremeR - 25.12.2012

It's easy you can do it with AttachObjectToVehicle
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle

And for destroying use DestroyObject function


Re: How to load a forklift ? - ZackBoolaro - 25.12.2012

I should then do: DestroyObject for /deliverpackages right ?


Re: How to load a forklift ? - XtremeR - 25.12.2012

Yes Zack see my edited post


Re: How to load a forklift ? - ZackBoolaro - 25.12.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
Yes Zack see my edited post
Ohh thanks man ill put you in the credits for helping me The script will be released later tonight or tomrrow morning. GMT +2 time.