Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function 0 2 0
- CallNative "NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME" 0 0
- Call @Main_
- Return 0 0
- :Main_
- Function 0 2 0
- PushString "~r~Loading ~w~Lake Bridge ~b~ By Zundappchef "
- // enter any text u like to display while loading
- Call @PrintText_
- //enter your choosen prop in the first puchstring
- PushString "prop_lev_des_barge_02"
- //XYZ Coords
- fPush 1300.0000
- fPush 3681.0000
- fPush 33.0000
- //Rotation Coord
- fPush 13.0000
- fPush 180.0000
- fPush 0.0000
- Call @SpawnObject_
- // this would be your seccond prop
- PushString "prop_lev_des_barge_02"
- fPush 1300.0000
- fPush 3716.0000
- fPush 37.0000
- fPush 0.0000
- fPush 180.0000
- fPush 0.0000
- Call @SpawnObject_
- PushS 500
- CallNative "WAIT" 1 0
- // enter the coords u want to teleport to when the whole map mod is loaded
- //XYZ Coords
- fPush 1300.0000
- fPush 3665.0000
- fPush 33.0000
- Call @Teleport_
- // message that u loaded the script
- PushString "Lake Bridge ~g~ Loaded! ~b~ Enjoy !"
- Call @PrintText_
- // Dont change anything beyond this point
- :Loop_
- push_0
- CallNative "WAIT" 1 0
- Jump @Loop_
- Return 0 0
- :SpawnObject_
- Function 7 9 0
- getF1 0
- GetHash
- CallNative "REQUEST_MODEL" 1 0
- :SpawnObjectCheckModel_
- push_0
- CallNative "WAIT" 1 0
- getF1 0
- GetHash
- CallNative "HAS_MODEL_LOADED" 1 1
- JumpFalse @SpawnObjectCheckModel_
- getF1 0
- GetHash
- getF1 1
- getF1 2
- getF1 3
- push_1
- push_1
- push_0
- CallNative "CREATE_OBJECT_NO_OFFSET" 7 1
- Dup2
- CallNative "OBJ_TO_NET" 1 1
- push_1
- CallNative "SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES" 2 0
- getF1 4
- getF1 5
- getF1 6
- push_2
- push_1
- CallNative "SET_ENTITY_ROTATION" 6 0
- push_1
- CallNative "FREEZE_ENTITY_POSITION" 2 0
- Return 7 0
- :PrintText_
- Function 1 3 0
- PushString "STRING"
- CallNative "UNK_574EE85C" 1 0
- getF1 0
- CallNative "UNK_27A244D8" 1 0
- push_0
- push_1
- CallNative "UNK_08F7AF78" 2 1
- Drop
- Return 1 0
- :Teleport_
- Function 3 5 0
- CallNative "PLAYER_PED_ID" 0 1
- CallNative "IS_PED_SITTING_IN_ANY_VEHICLE" 1 1
- JumpFalse @TeleportNonVehicle_
- CallNative "PLAYER_PED_ID" 0 1
- CallNative "GET_VEHICLE_PED_IS_USING" 1 1
- getF1 0
- getF1 1
- getF1 2
- push_1
- push_0
- push_0
- push_1
- CallNative "SET_ENTITY_COORDS" 8 0
- Jump @EndTeleport_
- :TeleportNonVehicle_
- CallNative "PLAYER_PED_ID" 0 1
- getF1 0
- getF1 1
- getF1 2
- push_1
- push_0
- push_0
- push_1
- CallNative "SET_ENTITY_COORDS" 8 0
- :EndTeleport_
- Return 3 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement