TASK
TASK_SUBMARINE_GOTO_AND_STOP
0xC22B40579A498CA4
Signature
// TASK
void TASK_SUBMARINE_GOTO_AND_STOP(Ped ped, Vehicle submarine, float x, float y, float z, BOOL autopilot)
Parameters
| Type | Name |
|---|---|
| Ped | ped |
| Vehicle | submarine |
| float | x |
| float | y |
| float | z |
| BOOL | autopilot |
Return type void
Build 2189
Documentation
Used in am_vehicle_spawn.ysc and am_mp_submarine.ysc. p0 is always 0, p5 is always 1 p1 is the vehicle handle of the submarine. Submarine must have a driver, but the ped handle is not passed to the native. Speed can be set by calling SET_DRIVE_TASK_CRUISE_SPEED after
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.