open.mp forum
How to enter a crane in SA-MP? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19)
--- Forum: Programming (https://forum.open.mp/forumdisplay.php?fid=56)
--- Thread: How to enter a crane in SA-MP? (/showthread.php?tid=1683)



How to enter a crane in SA-MP? - jdefgh - 2021-02-19

How do enter or put a player in the Import/Export crane? I wanted to make a filterscript for Exports and Imports, but i have no idea how to enter it.

Because normally, there was a red spot where you could enter the crane, but i can't find a way to replicate it.

The crane is not a vehicle, so i can't just get its id and put the player in it. There should be a way to enter it.



Do i have to reinvent the wheel, or there's a way to put player in a crane?


RE: How to enter a crane in SA-MP? - LaszloR1 - 2021-02-19

Hi! You will have to do this manually yourself, sadly there is no easy way like in Single Player. I suggest you look into MoveObject and its related functions, also SetPlayerCameraPos, SetPlayerCameraLookAt and their related functions too.

NiCe made this a while back for his server:
[Video: https://www.youtube.com/watch?v=oOVp9leMoNc]