Advertisement
xXNiKkI_DownXx

Map Base CSA

May 13th, 2018 (edited)
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function 0 2 0
  2. CallNative "NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME" 0 0
  3. Call @Main_
  4. Return 0 0
  5.  
  6. :Main_
  7. Function 0 2 0
  8. PushString "~r~Loading ~w~Lake Bridge ~b~ By Zundappchef "
  9. // enter any text u like to display while loading
  10. Call @PrintText_
  11.  
  12. //enter your choosen prop in the first puchstring
  13. PushString "prop_lev_des_barge_02"
  14. //XYZ Coords
  15. fPush 1300.0000
  16. fPush 3681.0000
  17. fPush 33.0000
  18. //Rotation Coord
  19. fPush 13.0000
  20. fPush 180.0000
  21. fPush 0.0000
  22. Call @SpawnObject_
  23. // this would be your seccond prop
  24. PushString "prop_lev_des_barge_02"
  25. fPush 1300.0000
  26. fPush 3716.0000
  27. fPush 37.0000
  28. fPush 0.0000
  29. fPush 180.0000
  30. fPush 0.0000
  31. Call @SpawnObject_
  32.  
  33.  
  34.  
  35. PushS 500
  36. CallNative "WAIT" 1 0
  37. // enter the coords u want to teleport to when the whole map mod is loaded
  38. //XYZ Coords
  39. fPush 1300.0000
  40. fPush 3665.0000
  41. fPush 33.0000
  42. Call @Teleport_
  43. // message that u loaded the script
  44. PushString "Lake Bridge ~g~ Loaded! ~b~ Enjoy !"
  45. Call @PrintText_
  46.  
  47.  
  48.  
  49.  
  50.  
  51. // Dont change anything beyond this point
  52. :Loop_
  53. push_0
  54. CallNative "WAIT" 1 0
  55. Jump @Loop_
  56. Return 0 0
  57.  
  58. :SpawnObject_
  59. Function 7 9 0
  60. getF1 0
  61. GetHash
  62. CallNative "REQUEST_MODEL" 1 0
  63. :SpawnObjectCheckModel_
  64. push_0
  65. CallNative "WAIT" 1 0
  66. getF1 0
  67. GetHash
  68. CallNative "HAS_MODEL_LOADED" 1 1
  69. JumpFalse @SpawnObjectCheckModel_
  70. getF1 0
  71. GetHash
  72. getF1 1
  73. getF1 2
  74. getF1 3
  75. push_1
  76. push_1
  77. push_0
  78. CallNative "CREATE_OBJECT_NO_OFFSET" 7 1
  79. Dup2
  80. CallNative "OBJ_TO_NET" 1 1
  81. push_1
  82. CallNative "SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES" 2 0
  83. getF1 4
  84. getF1 5
  85. getF1 6
  86. push_2
  87. push_1
  88. CallNative "SET_ENTITY_ROTATION" 6 0
  89. push_1
  90. CallNative "FREEZE_ENTITY_POSITION" 2 0
  91. Return 7 0
  92.  
  93. :PrintText_
  94. Function 1 3 0
  95. PushString "STRING"
  96. CallNative "UNK_574EE85C" 1 0
  97. getF1 0
  98. CallNative "UNK_27A244D8" 1 0
  99. push_0
  100. push_1
  101. CallNative "UNK_08F7AF78" 2 1
  102. Drop
  103. Return 1 0
  104.  
  105. :Teleport_
  106. Function 3 5 0
  107. CallNative "PLAYER_PED_ID" 0 1
  108. CallNative "IS_PED_SITTING_IN_ANY_VEHICLE" 1 1
  109. JumpFalse @TeleportNonVehicle_
  110. CallNative "PLAYER_PED_ID" 0 1
  111. CallNative "GET_VEHICLE_PED_IS_USING" 1 1
  112. getF1 0
  113. getF1 1
  114. getF1 2
  115. push_1
  116. push_0
  117. push_0
  118. push_1
  119. CallNative "SET_ENTITY_COORDS" 8 0
  120. Jump @EndTeleport_
  121.  
  122. :TeleportNonVehicle_
  123. CallNative "PLAYER_PED_ID" 0 1
  124. getF1 0
  125. getF1 1
  126. getF1 2
  127. push_1
  128. push_0
  129. push_0
  130. push_1
  131. CallNative "SET_ENTITY_COORDS" 8 0
  132. :EndTeleport_
  133. Return 3 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement