Advertisement
Guest User

Datei1.ahk

a guest
Jun 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2.  
  3. ; Error-Codes
  4. API_ERROR_NONE                              := 0
  5. API_ERROR_SNAPSHOT_FAILED                   := 1
  6. API_ERROR_SAMP_NOT_FOUND                    := 2
  7. API_ERROR_REMOTE_MEMORY_ALLOCATION_FAILED   := 3
  8. API_ERROR_WRITEPROCESSMEMORY_FAILED         := 4
  9. API_ERROR_GETPROCADDRESS_FAILED             := 5
  10. API_ERROR_REMOTETHREAD_FAILED               := 6
  11. API_ERROR_INVALID_GTA_HANDLE                := 7
  12. API_ERROR_PIPE_DOESNT_RESPOND               := 8
  13. API_ERROR_STRING_TOO_LONG                   := 9
  14.  
  15. PLAYER_STATE_LEAVING_VEHICLE                := 0
  16. PLAYER_STATE_NORMAL                         := 1
  17. PLAYER_STATE_DRIVING                        := 50
  18. PLAYER_STATE_DYING                          := 54
  19. PLAYER_STATE_DEAD                           := 55
  20.  
  21. CALLBACK_HEAL                               := 0
  22. CALLBACK_ARMOR                              := 1
  23. CALLBACK_POSITION                           := 2
  24. CALLBACK_ENTEREXIT                          := 3
  25. CALLBACK_VEHICLE_ENTEREXIT                  := 4
  26. CALLBACK_VEHICLE_HEALTH                     := 5
  27. CALLBACK_VEHICLE_ENGINE                     := 6
  28. CALLBACK_VEHICLE_LOCK                       := 7
  29. CALLBACK_VEHICLE_SPEED                      := 8
  30. CALLBACK_WEAPON_CLIP                        := 9
  31. CALLBACK_WEAPON_TOTALCLIP                   := 10
  32. CALLBACK_WEAPON_SWITCH                      := 11
  33. CALLBACK_CHATLOG                            := 12
  34.  
  35.  
  36. PATH_API := RelToAbs(A_ScriptDir, "API.dll")
  37.  
  38. hModule := DllCall("LoadLibrary", Str, PATH_API)
  39. if(hModule == -1 || hModule == 0)
  40. {
  41.     MsgBox, 16, API.dll nicht gefunden!, API.dll konnte nicht gefunden werden.
  42.     ExitApp
  43. }
  44.  
  45. ; Funktionsadressen in der DLL
  46. Init_func               := DllCall("GetProcAddress", UInt, hModule, Str, "API_Init")
  47. SetParam_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetParam")
  48. ReadMemory_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_ReadMemory")
  49. GetBasePointer_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetBasePointer")
  50. GetCommandLine_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCommandLine")
  51. GetLastError_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastError")
  52. SetLastError_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetLastError")
  53. SendChat_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_SendChat")
  54. ShowGameText_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowGameText")
  55. AddChatMessage_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_AddChatMessage")
  56. ShowDialog_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowDialog")
  57. IsDialogOpen_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsDialogOpen")
  58. GetLastDialogId_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogId")
  59. GetLastDialogType_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogType")
  60. BlockChatInput_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_BlockChatInput")
  61. GetChatLine_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLine")
  62. GetChatLineFromFile_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLineFromFile")
  63. IsChatOpen_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsChatOpen")
  64.  
  65. GetScreenSizeX_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeX")
  66. GetScreenSizeY_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeY")
  67. GetFramerate_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetFramerate")
  68. GetCurrentWeatherId_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCurrentWeatherId")
  69. GetZoneName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneName")
  70. GetCityName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityName")
  71. GetZoneNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneNameByCoords")
  72. GetCityNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityNameByCoords")
  73. GetMarkerPos_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMarkerPos")
  74. GetLastMousePosOnMenuMap_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastMousePosOnMenuMap")
  75. GetMapMarkerPos_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMapMarkerPos")
  76. FindGroundZForPosition_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_FindGroundZForPosition")
  77. WorldToScreen_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_WorldToScreen")
  78. ScreenToWorld_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_ScreenToWorld")
  79. RegisterTextBind_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_RegisterTextBind")
  80. UnregisterTextBind_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterTextBind")
  81. UnregisterAllTextBinds_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterAllTextBinds")
  82. TextBindTimer_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextBindTimer")
  83. IsMenuOpen_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsMenuOpen")
  84.  
  85. GetPlayerId_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerId")
  86. GetPlayerName_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerName")
  87. GetServerIp_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerIp")
  88. GetServerPort_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerPort")
  89.  
  90. ; //////////////////
  91. ;   CPed.h
  92. ; //////////////////
  93. GetPlayerCPed_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerCPed")
  94. GetPlayerHealth_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerHealth")
  95. GetPlayerArmor_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerArmor")
  96. GetPlayerMoney_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerMoney")
  97. GetPlayerWanteds_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWanteds")
  98. GetPlayerPosition_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPosition")
  99. IsPlayerInRangeOfPoint_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint")
  100. IsPlayerInRangeOfPoint2D_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint2D")
  101. IsPlayerInAnyInterior_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyInterior")
  102. IsPlayerFrozen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerFrozen")
  103. GetPlayerWeaponSlot_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponSlot")
  104. GetPlayerWeaponId_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponId")
  105. GetPlayerWeaponName_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponName")
  106. GetPlayerWeaponClip_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponClip")
  107. GetPlayerWeaponTotalClip_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponTotalClip")
  108. GetPlayerWeaponState_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponState")
  109. GetPlayerState_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerState")
  110.  
  111. ; //////////////////
  112. ;   Vehicle.h
  113. ; //////////////////
  114. GetVehiclePointer_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehiclePointer")
  115. GetVehicleModelId_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelId")
  116. GetVehicleModelName_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelName")
  117. GetVehicleModelNameById_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelNameById")
  118. GetVehicleType_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleType")
  119. GetVehicleHealth_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleHealth")
  120. GetVehicleRadioStation_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStation")
  121. GetVehicleRadioStationName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStationName")
  122. GetVehicleFreeSeats_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFreeSeats")
  123. GetVehicleSpeed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSpeed")
  124. GetVehicleFirstColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFirstColor")
  125. GetVehicleSecondColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSecondColor")
  126. GetVehicleColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColor")
  127. GetVehicleColorRGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorRGB")
  128. GetVehicleColorARGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorARGB")
  129.  
  130.  
  131. IsPlayerInAnyVehicle_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyVehicle")
  132. IsPlayerDriver_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerDriver")
  133. IsPlayerPassenger_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerPassenger")
  134. IsVehicleSeatUsed_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSeatUsed")
  135. IsVehicleLocked_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLocked")
  136. IsVehicleSirenEnabled_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSirenEnabled")
  137. IsVehicleHornEnabled_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleHornEnabled")
  138. IsVehicleAlternateSirenEnabled_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleAlternateSirenEnabled")
  139. IsVehicleEngineEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleEngineEnabled")
  140. IsVehicleLightEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLightEnabled")
  141. IsPlayerInCar_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInCar")
  142. IsPlayerInPlane_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInPlane")
  143. IsPlayerInBoat_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBoat")
  144. IsPlayerInTrain_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInTrain")
  145. IsPlayerInBike_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBike")
  146. ; //////////////////
  147. ;   Draw
  148. ; //////////////////
  149. TextCreate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextCreate")
  150. TextDestroy_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextDestroy")
  151. TextSetShadow_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShadow")
  152. TextSetShown_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShown")
  153. TextSetColor_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetColor")
  154. TextSetPos_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetPos")
  155. TextSetString_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetString")
  156. TextUpdate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_")
  157.  
  158. BoxCreate_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxCreate")
  159. BoxDestroy_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxDestroy")
  160. BoxSetShown_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetShown")
  161. BoxSetBorder_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorder")
  162. BoxSetBorderColor_func  := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorderColor")
  163. BoxSetColor_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetColor")
  164. BoxSetHeight_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetHeight")
  165. BoxSetPos_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetPos")
  166. BoxSetWidth_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetWidth")
  167.  
  168. LineCreate_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineCreate")
  169. LineDestroy_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineDestroy")
  170. LineSetShown_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetShown")
  171. LineSetColor_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetColor")
  172. LineSetWidth_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetWidth")
  173. LineSetPos_func         := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetPos")
  174.  
  175. ImageCreate_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageCreate")
  176. ImageDestroy_func       := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageDestroy")
  177. ImageSetShown_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetShown")
  178. ImageSetAlign_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetAlign")
  179. ImageSetPos_func        := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetPos")
  180. ImageSetRotation_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetRotation")
  181.  
  182. DestroyAllVisual_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_DestroyAllVisual")
  183. ShowAllVisual_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowAllVisual")
  184. HideAllVisual_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_HideAllVisual")
  185.  
  186.  
  187. ; ////////////////
  188. ;     CALLBACK
  189. ; ////////////////
  190. SetCallbackPointer_func     := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetCallbackPointer")
  191. UnSetCallbackPointer_func   := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetCallbackPointer")
  192. SetListenCallback_func      := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetListenCallback")
  193. UnSetListenCallback_func    := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallback")
  194. UnSetListenCallbackAll_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallbackAll")
  195.  
  196. ; ////////////////
  197. ;     PlayerData.h
  198. ; ////////////////
  199. UpdateServerData_func           := DllCall("GetProcAddress", UInt, hModule, Str, "API_UpdateServerData")
  200. GetPlayerNameById_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerNameById")
  201. GetPlayerIdByName_func          := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerIdByName")
  202.  
  203. Init()
  204. {
  205.     global Init_func
  206.     res := DllCall(Init_func)
  207.     return res
  208. }
  209.  
  210. SetParam(str_Name, str_Value)
  211. {
  212.     global SetParam_func
  213.     res := DllCall(SetParam_func, Str, str_Name, Str, str_Value)
  214.     return res
  215. }
  216.  
  217. ReadMemory(addr, size, ByRef data)
  218. {
  219.     global ReadMemory_func
  220.     VarSetCapacity(data,size)
  221.     res := DllCall(ReadMemory_func, UInt, addr, UInt, size, StrP, data)
  222.     return res
  223. }
  224.  
  225. GetBasePointer(dll)
  226. {
  227.     global GetBasePointer_func
  228.     res :=DllCall(GetBasePointer_func, Str, dll)
  229.     return res
  230. }
  231.  
  232. GetCommandLine(ByRef line)
  233. {
  234.     global GetCommandLine_func
  235.     VarSetCapacity(line,512,0)
  236.     res := DllCall(GetCommandLine_func, StrP, line)
  237.     return res
  238. }
  239.  
  240. GetLastError()
  241. {
  242.     global GetLastError_func
  243.     res:=DllCall(GetLastError_func)
  244.     return res
  245. }
  246.  
  247. SetLastError(error)
  248. {
  249.     global SetLastError_func
  250.     res := DllCall(SetLastError_func, Int, error)
  251.     return res
  252. }
  253.  
  254. SendChat(msg)
  255. {
  256.     global SendChat_func
  257.     res := DllCall(SendChat_func, Str, msg)
  258.     return res
  259. }
  260.  
  261. ShowGameText(str_Text, int_Time, int_Style)
  262. {
  263.     global ShowGameText_func
  264.     res := DllCall(ShowGameText_func,Str , str_Text, Int, int_Time, Int, int_Style)
  265.     return res
  266. }
  267.  
  268. AddChatMessage_api(int_Color, str_Text)
  269. {
  270.     global AddChatMessage_func
  271.     res := DllCall(AddChatMessage_func, Int, int_Color, Str, str_Text)
  272.     return res
  273. }
  274.  
  275. ShowDialog2(style, caption, text, button)
  276. {
  277.     global ShowDialog_func
  278.     res := DllCall(ShowDialog_func, Int, style, Str, caption, Str, text, Str, button)
  279.     return res
  280. }
  281.  
  282. IsDialogOpen()
  283. {
  284.     global IsDialogOpen_func
  285.     res := DllCall(IsDialogOpen_func)
  286.     return res
  287. }
  288.  
  289. GetLastDialogId()
  290. {
  291.     global GetLastDialogId_func
  292.     res := DllCall(GetLastDialogId_func)
  293.     return res
  294. }
  295.  
  296. GetLastDialogType()
  297. {
  298.     global GetLastDialogType_func
  299.     res := DllCall(GetLastDialogType_func)
  300.     return res
  301. }
  302.  
  303. BlockChatInput(block)
  304. {
  305.     global BlockChatInput_func
  306.     res := DllCall(BlockChatInput_func,UChar,block)
  307.     return res
  308. }
  309.  
  310. GetChatLine(id, ByRef line)
  311. {
  312.     global GetChatLine_func
  313.     VarSetCapacity(line,256,0)
  314.     res := DllCall(GetChatLine_func,Int,id,StrP,line)
  315.     return res
  316. }
  317.  
  318. GetChatLineFromFile(id, ByRef line)
  319. {
  320.     global GetChatLineFromFile_func
  321.     VarSetCapacity(line,256,0)
  322.     res := DllCall(GetChatLineFromFile_func,Int,id,StrP,line)
  323.     return res
  324. }
  325.  
  326. IsChatOpen()
  327. {
  328.     global IsChatOpen_func
  329.     res := DllCall(IsChatOpen_func)
  330.     return res
  331. }
  332.  
  333. GetScreenSizeX()
  334. {
  335.     global GetScreenSizeX_func
  336.     res := DllCall(GetScreenSizeX_func)
  337.     return res
  338. }
  339.  
  340. GetScreenSizeY()
  341. {
  342.     global GetScreenSizeY_func
  343.     res := DllCall(GetScreenSizeY_func)
  344.     return res
  345. }
  346.  
  347. GetFramerate()
  348. {
  349.     global GetFramerate_func
  350.     res := DllCall(GetFramerate_func)
  351.     return res
  352. }
  353.  
  354. GetCurrentWeatherId()
  355. {
  356.     global GetCurrentWeatherId_func
  357.     res := DllCall(GetCurrentWeatherId_func)
  358.     return res
  359. }
  360.  
  361. GetZoneName( ByRef str_ZoneName)
  362. {
  363.     global GetZoneName_func
  364.     VarSetCapacity(str_ZoneName, 32)
  365.     res := DllCall(GetZoneName_func, StrP, str_ZoneName)
  366.     return res
  367. }
  368.  
  369. GetCityName( ByRef str_CityName)
  370. {
  371.     global GetCityName_func
  372.     VarSetCapacity(str_CityName, 32)
  373.     res := DllCall(GetCityName_func, StrP, str_CityName)
  374.     return res
  375. }
  376.  
  377. GetZoneNameByCoords(x, y, ByRef str_ZoneName)
  378. {
  379.     global GetZoneNameByCoords_func
  380.     VarSetCapacity(str_ZoneName, 32)
  381.     res := DllCall(GetZoneNameByCoords_func, Float, x, Float, y, StrP, str_ZoneName)
  382.     return res
  383. }
  384.  
  385. GetCityNameByCoords(x, y, ByRef str_CityName)
  386. {
  387.     global GetCityNameByCoords_func
  388.     VarSetCapacity(str_CityName, 32)
  389.     res := DllCall(GetCityNameByCoords_func, Float, x, Float, y, StrP, str_CityName)
  390.     return res
  391. }
  392.  
  393. GetMarkerPos(ByRef x, ByRef y, ByRef z)
  394. {
  395.     global GetMarkerPos_func
  396.     res := DllCall(GetMarkerPos_func, FloatP, x, FloatP, y, FloatP, z)
  397.     return res
  398. }
  399.  
  400. GetLastMousePosOnMenuMap(ByRef x, ByRef y)
  401. {
  402.     global GetLastMousePosOnMenuMap_func
  403.     res := DllCall(GetLastMousePosOnMenuMap_func, FloatP, x, FloatP, y)
  404.     return res
  405. }
  406.  
  407. GetMapMarkerPos(ByRef x, ByRef y)
  408. {
  409.     global GetMapMarkerPos_func
  410.     res := DllCall(GetMapMarkerPos_func, FloatP, x, FloatP, y)
  411.     return res
  412. }
  413.  
  414. FindGroundZForPosition(x,y)
  415. {
  416.     global FindGroundZForPosition_func
  417.     res := DllCall(FindGroundZForPosition_func, Float, x, Float, y, "Cdecl float")
  418.     return res
  419. }
  420.  
  421. WorldToScreen(worldX, worldY, worldZ, ByRef screenX, ByRef screenY)
  422. {
  423.     global WorldToScreen_func
  424.     res := DllCall(WorldToScreen_func, Float, worldX, Float, worldY, Float, worldZ, FloatP, screenX, FloatP, screenY)
  425.     return res
  426. }
  427.  
  428. ScreenToWorld(screenX, screenY, ByRef worldX, ByRef worldY, ByRef worldZ)
  429. {
  430.     global ScreenToWorld_func
  431.     res := DllCall(ScreenToWorld_func, Float, screenX, Float, screenY, FloatP, worldX, FloatP, worldY, FloatP, worldZ)
  432.     return res
  433. }
  434.  
  435. RegisterTextBind(str_TextBind, float_PosX, float_PosY, float_PosZ, float_Radius, int_Delay, int_Loop, int_GroupId, int_isChild, int_Timeout)
  436. {
  437.     global RegisterTextBind_func
  438.     res := DllCall(RegisterTextBind_func, Str, str_TextBind, Float, float_PosX, Float, float_PosY, Float, float_PosZ, Float, float_Radius, Int, int_Delay, Int, int_Loop, Int, int_GroupId, Int, int_isChild, Int, int_Timeout)
  439.     return res
  440. }
  441.  
  442. UnregisterTextBind(int_TextBindId)
  443. {
  444.     global UnregisterTextBind_func
  445.     res := DllCall(UnregisterTextBind_func, Int, int_TextBindId)
  446.     return res
  447. }
  448.  
  449. UnregisterAllTextBinds()
  450. {
  451.     global UnregisterAllTextBinds_func
  452.     res := DllCall(UnregisterAllTextBinds_func)
  453.     return res
  454. }
  455.  
  456. TextBindTimer(int_TextBindSleep)
  457. {
  458.     global TextBindTimer_func
  459.     res := DllCall(TextBindTimer_func, Int, int_TextBindSleep)
  460.     return res
  461. }
  462.  
  463. IsMenuOpen()
  464. {
  465.     global IsMenuOpen_func
  466.     res := DllCall(IsMenuOpen_func)
  467.     return res
  468. }
  469.  
  470. GetPlayerId()
  471. {
  472.     global GetPlayerId_func
  473.     res := DllCall(GetPlayerId_func)
  474.     return res
  475. }
  476.    
  477. GetPlayerName(ByRef szName)
  478. {
  479.     global GetPlayerName_func
  480.     VarSetCapacity(szName,25)
  481.     res := DllCall(GetPlayerName_func, StrP, szName)
  482.     return res
  483. }
  484.  
  485. GetServerIp(ByRef szHost)
  486. {
  487.     global GetServerIp_func
  488.     VarSetCapacity(szHost, 30)
  489.     res := DllCall(GetServerIp_func, StrP, szHost)
  490.     return res
  491. }
  492.  
  493. GetServerPort()
  494. {
  495.     global GetServerPort_func
  496.     res := DllCall(GetServerPort_func)
  497.     return res
  498. }
  499.  
  500. ; /////////////////////// CPED ////////////////////////////
  501. ; /////////////////////// CPED ////////////////////////////
  502. ; /////////////////////// CPED ////////////////////////////
  503.  
  504. GetPlayerCPed()
  505. {
  506.     global GetPlayerCPed_func
  507.     res :=DllCall(GetPlayerCPed_func)
  508.     return res
  509. }
  510.  
  511. GetPlayerHealth()
  512. {
  513.     global GetPlayerHealth_func
  514.     res := DllCall(GetPlayerHealth_func)
  515.     return res
  516. }
  517.  
  518. GetPlayerArmor()
  519. {
  520.     global GetPlayerArmor_func
  521.     res := DllCall(GetPlayerArmor_func)
  522.     return res
  523. }
  524.  
  525. GetPlayerMoney()
  526. {
  527.     global GetPlayerMoney_func
  528.     res := DllCall(GetPlayerMoney_func)
  529.     return res
  530. }
  531.  
  532. GetPlayerWanteds()
  533. {
  534.     global GetPlayerWanteds_func
  535.     res := DllCall(GetPlayerWanteds_func)
  536.     return res
  537. }
  538.  
  539. GetPlayerPosition(ByRef flo_posX, ByRef flo_posY, ByRef flo_posZ, ByRef flo_Rotation)
  540. {
  541.     global GetPlayerPosition_func
  542.     res := DllCall(GetPlayerPosition_func, FloatP, flo_posX, FloatP, flo_posY, FloatP, flo_posZ,  FloatP, flo_Rotation)
  543.     return res
  544. }
  545.  
  546. IsPlayerInRangeOfPoint(flo_posX, flo_posY, flo_posZ, flo_posRadius)
  547. {
  548.     global IsPlayerInRangeOfPoint_func
  549.     res := DllCall(IsPlayerInRangeOfPoint_func, Float, flo_posX, Float, flo_posY, Float, flo_posZ, Float, flo_posRadius)
  550.     return res
  551. }
  552.  
  553. IsPlayerInRangeOfPoint2D(flo_posX, flo_posY, flo_posRadius)
  554. {
  555.     global IsPlayerInRangeOfPoint2D_func
  556.     res := DllCall(IsPlayerInRangeOfPoint2D_func, Float, flo_posX, Float, flo_posY, Float, flo_posRadius)
  557.     return res
  558. }
  559.  
  560. IsPlayerInAnyInterior()
  561. {
  562.     global IsPlayerInAnyInterior_func
  563.     res := DllCall(IsPlayerInAnyInterior_func)
  564.     return res
  565. }
  566.  
  567. IsPlayerFrozen()
  568. {
  569.     global IsPlayerFrozen_func
  570.     res := DllCall(IsPlayerFrozen_func)
  571.     return res
  572. }
  573.  
  574. GetPlayerWeaponSlot()
  575. {
  576.     global GetPlayerWeaponSlot_func
  577.     res := DllCall(GetPlayerWeaponSlot_func)
  578.     return res
  579. }
  580.  
  581. GetPlayerWeaponId(int_WeaponSlot)
  582. {
  583.     global GetPlayerWeaponId_func
  584.     res := DllCall(GetPlayerWeaponId_func, Int, int_WeaponSlot)
  585.     return res
  586. }
  587.  
  588. GetPlayerWeaponName(int_WeaponSlot, ByRef str_WeapName)
  589. {
  590.     global GetPlayerWeaponName_func
  591.     VarSetCapacity(str_WeapName, 32)
  592.     res := DllCall(GetPlayerWeaponName_func, Int, int_WeaponSlot, StrP, str_WeapName)
  593.     return res
  594. }
  595.  
  596. GetPlayerWeaponClip(int_WeaponSlot)
  597. {
  598.     global GetPlayerWeaponClip_func
  599.     res := DllCall(GetPlayerWeaponClip_func, Int, int_WeaponSlot)
  600.     return res
  601. }
  602.  
  603. GetPlayerWeaponTotalClip(int_WeaponSlot)
  604. {
  605.     global GetPlayerWeaponTotalClip_func
  606.     res := DllCall(GetPlayerWeaponTotalClip_func, Int, int_WeaponSlot)
  607.     return res
  608. }
  609.  
  610. GetPlayerWeaponState()
  611. {
  612.     global GetPlayerWeaponState_func
  613.     res := DllCall(GetPlayerWeaponState_func)
  614.     return res
  615. }
  616.  
  617. GetPlayerState()
  618. {
  619.     global GetPlayerState_func
  620.     res := DllCall(GetPlayerState_func)
  621.     return res
  622. }
  623.  
  624. ; /////////////////////// VEHICLE ////////////////////////////
  625. ; /////////////////////// VEHICLE ////////////////////////////
  626. ; /////////////////////// VEHICLE ////////////////////////////
  627.  
  628. GetVehiclePointer()
  629. {
  630.     global GetVehiclePointer_func
  631.     res := DllCall(GetVehiclePointer_func)
  632.     return res
  633. }
  634.  
  635. GetVehicleModelId()
  636. {
  637.     global GetVehicleModelId_func
  638.     res := DllCall(GetVehicleModelId_func)
  639.     return res
  640. }
  641.  
  642. GetVehicleModelName(ByRef str_VehicleName)
  643. {
  644.     global GetVehicleModelName_func
  645.     VarSetCapacity(str_VehicleName, 32)
  646.     res := DllCall(GetVehicleModelName_func, StrP, str_VehicleName)
  647.     return res
  648. }
  649.  
  650. GetVehicleModelNameById(int_VehicleId, ByRef str_VehicleName)
  651. {
  652.     global GetVehicleModelNameById_func
  653.     VarSetCapacity(str_VehicleName, 32)
  654.     res := DllCall(GetVehicleModelNameById_func, Int, int_VehicleId, StrP, str_VehicleName)
  655.     return res
  656. }
  657.  
  658. GetVehicleType()
  659. {
  660.     global GetVehicleType_func
  661.     res := DllCall(GetVehicleType_func)
  662.     return res
  663. }
  664.  
  665. GetVehicleHealth()
  666. {
  667.     global GetVehicleHealth_func
  668.     res := DllCall(GetVehicleHealth_func)
  669.     return res
  670. }
  671.  
  672. GetVehicleRadioStation()
  673. {
  674.     global GetVehicleRadioStation_func
  675.     res := DllCall(GetVehicleRadioStation_func)
  676.     return res
  677. }
  678.  
  679. GetVehicleRadioStationName(ByRef str_RadioName)
  680. {
  681.     global GetVehicleRadioStationName_func
  682.     VarSetCapacity(str_RadioName, 32)
  683.     res := DllCall(GetVehicleRadioStationName_func, StrP, str_RadioName)
  684.     return res
  685. }
  686.  
  687. GetVehicleFreeSeats(ByRef int_SeatFL, ByRef int_SeatFR, ByRef int_SeatBL, ByRef int_SeatBR)
  688. {
  689.     global GetVehicleFreeSeats_func
  690.     res := DllCall(GetVehicleFreeSeats_func, IntP, int_SeatFL, IntP, int_SeatFR, IntP, int_SeatBL, IntP, int_SeatBR)
  691.     return res
  692. }
  693.  
  694. GetVehicleSpeed(float_SpeedMult)
  695. {
  696.     global GetVehicleSpeed_func
  697.     res := DllCall(GetVehicleSpeed_func, Float, float_SpeedMult)
  698.     return res
  699. }
  700.  
  701. GetVehicleFirstColor()
  702. {
  703.     global GetVehicleFirstColor_func
  704.     res := DllCall(GetVehicleFirstColor_func)
  705.     return res
  706. }
  707.  
  708. GetVehicleSecondColor()
  709. {
  710.     global GetVehicleSecondColor_func
  711.     res := DllCall(GetVehicleSecondColor_func)
  712.     return res
  713. }
  714.  
  715. GetVehicleColor(ByRef int_ColorFirst, ByRef int_ColorSecond)
  716. {
  717.     global GetVehicleColor_func
  718.     res := DllCall(GetVehicleColor_func, IntP, int_ColorFirst, IntP, int_ColorSecond)
  719.     return res
  720. }
  721.  
  722. GetVehicleColorRGB(int_Color, ByRef uint_ColorRGB)
  723. {
  724.     global GetVehicleColorRGB_func
  725.     res := DllCall(GetVehicleColorRGB_func, Int, int_Color, UIntP, uint_ColorRGB)
  726.     return res
  727. }
  728.  
  729. GetVehicleColorARGB(int_Color, ByRef uint_ColorARGB)
  730. {
  731.     global GetVehicleColorARGB_func
  732.     res := DllCall(GetVehicleColorARGB_func, Int, int_Color, UIntP, uint_ColorARGB)
  733.     return res
  734. }
  735.  
  736.  
  737.  
  738. IsPlayerInAnyVehicle()
  739. {
  740.     global IsPlayerInAnyVehicle_func
  741.     res := DllCall(IsPlayerInAnyVehicle_func)
  742.     return res
  743. }
  744.  
  745. IsPlayerDriver()
  746. {
  747.     global IsPlayerDriver_func
  748.     res := DllCall(IsPlayerDriver_func)
  749.     return res
  750. }
  751.  
  752. IsPlayerPassenger()
  753. {
  754.     global IsPlayerPassenger_func
  755.     res := DllCall(IsPlayerPassenger_func)
  756.     return res
  757. }
  758.  
  759. IsVehicleSeatUsed(int_SeatId)
  760. {
  761.     global IsVehicleSeatUsed_func
  762.     res := DllCall(IsVehicleSeatUsed_func, int, int_SeatId)
  763.     return res
  764. }
  765.  
  766. IsVehicleLocked()
  767. {
  768.     global IsVehicleLocked_func
  769.     res := DllCall(IsVehicleLocked_func)
  770.     return res
  771. }
  772.  
  773. IsVehicleSirenEnabled()
  774. {
  775.     global IsVehicleSirenEnabled_func
  776.     res := DllCall(IsVehicleSirenEnabled_func)
  777.     return res
  778. }
  779.  
  780. IsVehicleHornEnabled()
  781. {
  782.     global IsVehicleHornEnabled_func
  783.     res := DllCall(IsVehicleHornEnabled_func)
  784.     return res
  785. }
  786.  
  787. IsVehicleAlternateSirenEnabled()
  788. {
  789.     global IsVehicleAlternateSirenEnabled_func
  790.     res := DllCall(IsVehicleAlternateSirenEnabled_func)
  791.     return res
  792. }
  793.  
  794. IsVehicleEngineEnabled()
  795. {
  796.     global IsVehicleEngineEnabled_func
  797.     res := DllCall(IsVehicleEngineEnabled_func)
  798.     return res
  799. }
  800.  
  801. IsVehicleLightEnabled()
  802. {
  803.     global IsVehicleLightEnabled_func
  804.     res := DllCall(IsVehicleLightEnabled_func)
  805.     return res
  806. }
  807.  
  808. IsPlayerInCar()
  809. {
  810.     global IsPlayerInCar_func
  811.     res := DllCall(IsPlayerInCar_func)
  812.     return res
  813. }
  814.  
  815. IsPlayerInPlane()
  816. {
  817.     global IsPlayerInPlane_func
  818.     res := DllCall(IsPlayerInPlane_func)
  819.     return res
  820. }
  821.  
  822. IsPlayerInBoat()
  823. {
  824.     global IsPlayerInBoat_func
  825.     res := DllCall(IsPlayerInBoat_func)
  826.     return res
  827. }
  828.  
  829. IsPlayerInTrain()
  830. {
  831.     global IsPlayerInTrain_func
  832.     res := DllCall(IsPlayerInTrain_func)
  833.     return res
  834. }
  835.  
  836. IsPlayerInBike()
  837. {
  838.     global IsPlayerInBike_func
  839.     res := DllCall(IsPlayerInBike_func)
  840.     return res
  841. }
  842.  
  843. ;////////////////// DRAW ///////////////////
  844. ;////////////////// DRAW ///////////////////
  845. ;////////////////// DRAW ///////////////////
  846.  
  847. TextCreate(Font, fontsize, bold, italic, x, y, color, text, shadow, show)
  848. {
  849.     global TextCreate_func
  850.     res := DllCall(TextCreate_func,Str,Font,Int,fontsize,UChar,bold,UChar,italic,Int,x,Int,y,UInt,color,Str,text,UChar,shadow,UChar,show)
  851.     return res
  852. }
  853.  
  854. TextDestroy(id)
  855. {
  856.     global TextDestroy_func
  857.     res := DllCall(TextDestroy_func,Int,id)
  858.     return res
  859. }
  860.  
  861. TextSetShadow(id, shadow)
  862. {
  863.     global TextSetShadow_func
  864.     res := DllCall(TextSetShadow_func,Int,id,UChar,shadow)
  865.     return res
  866. }
  867.  
  868. TextSetShown(id, show)
  869. {
  870.     global TextSetShown_func
  871.     res := DllCall(TextSetShown_func,Int,id,UChar,show)
  872.     return res
  873. }
  874.  
  875. TextSetColor(id,color)
  876. {
  877.     global TextSetColor_func
  878.     res := DllCall(TextSetColor_func,Int,id,UInt,color)
  879.     return res
  880. }
  881.  
  882. TextSetPos(id,x,y)
  883. {
  884.     global TextSetPos_func
  885.     res := DllCall(TextSetPos_func,Int,id,Int,x,Int,y)
  886.     return res
  887. }
  888.  
  889. TextSetString(id,Text)
  890. {
  891.     global TextSetString_func
  892.     res := DllCall(TextSetString_func,Int,id,Str,Text)
  893.     return res
  894. }
  895.  
  896. TextUpdate(id,Font,Fontsize,bold,italic)
  897. {
  898.     global TextUpdate_func
  899.     res := DllCall(TextUpdate_func,Int,id,Str,Font,int,Fontsize,UChar,bold,UChar,italic)
  900.     return res
  901. }
  902.  
  903. BoxCreate(x,y,width,height,Color,show)
  904. {
  905.     global BoxCreate_func
  906.     res := DllCall(BoxCreate_func,Int,x,Int,y,Int,width,Int,height,UInt,Color,UChar,show)
  907.     return res
  908. }
  909.  
  910. BoxDestroy(id)
  911. {
  912.     global BoxDestroy_func
  913.     res := DllCall(BoxDestroy_func,Int,id)
  914.     return res
  915. }
  916.  
  917. BoxSetShown(id,Show)
  918. {
  919.     global BoxSetShown_func
  920.     res := DllCall(BoxSetShown_func,Int,id,UChar,Show)
  921.     return res
  922. }
  923.    
  924. BoxSetBorder(id,height,Show)
  925. {
  926.     global BoxSetBorder_func
  927.     res := DllCall(BoxSetBorder_func,Int,id,Int,height,Int,Show)
  928.     return res
  929. }
  930.  
  931.  
  932. BoxSetBorderColor(id,Color)
  933. {
  934.     global BoxSetBorderColor_func
  935.     res := DllCall(BoxSetBorderColor_func,Int,id,UInt,Color)
  936.     return res
  937. }
  938.  
  939. BoxSetColor(id,Color)
  940. {
  941.     global BoxSetColor_func
  942.     res := DllCall(BoxSetColor_func,Int,id,UInt,Color)
  943.     return res
  944. }
  945.  
  946. BoxSetHeight(id,height)
  947. {
  948.     global BoxSetHeight_func
  949.     res := DllCall(BoxSetHeight_func,Int,id,Int,height)
  950.     return res
  951. }
  952.  
  953. BoxSetPos(id,x,y)
  954. {
  955.     global BoxSetPos_func  
  956.     res := DllCall(BoxSetPos_func,Int,id,Int,x,Int,y)
  957.     return res
  958. }
  959.  
  960. BoxSetWidth(id,width)
  961. {
  962.     global BoxSetWidth_func
  963.     res := DllCall(BoxSetWidth_func,Int,id,Int,width)
  964.     return res
  965. }
  966.  
  967. LineCreate(x1,y1,x2,y2,width,color,show)
  968. {
  969.     global LineCreate_func
  970.     res := DllCall(LineCreate_func,Int,x1,Int,y1,Int,x2,Int,y2,Int,Width,UInt,color,UChar,show)
  971.     return res
  972. }
  973.  
  974. LineDestroy(id)
  975. {
  976.     global LineDestroy_func
  977.     res := DllCall(LineDestroy_func,Int,id)
  978.     return res
  979. }
  980.  
  981. LineSetShown(id,show)
  982. {
  983.     global LineSetShown_func
  984.     res := DllCall(LineSetShown_func,Int,id,UChar,show)
  985.     return res
  986. }
  987.  
  988. LineSetColor(id,color)
  989. {
  990.     global LineSetColor_func
  991.     res := DllCall(LineSetColor_func,Int,id,UInt,color)
  992.     return res
  993. }
  994.  
  995. LineSetWidth(id, width)
  996. {
  997.     global LineSetWidth_func
  998.     res := DllCall(LineSetWidth_func,Int,id,Int,width)
  999.     return res
  1000. }
  1001.  
  1002. LineSetPos(id,x1,y1,x2,y2)
  1003. {
  1004.     global LineSetPos_func
  1005.     res := DllCall(LineSetPos_func,Int,id,Int,x1,Int,y1,Int,x2,Int,y2)
  1006.     return res
  1007. }
  1008.  
  1009. ImageCreate(path, x, y, rotation, align, show)
  1010. {
  1011.     global ImageCreate_func
  1012.     res := DllCall(ImageCreate_func, Str, path, Int, x, Int, y, Int, rotation, Int, align, UChar, show)
  1013.     return res
  1014. }
  1015.  
  1016. ImageDestroy(id)
  1017. {
  1018.     global ImageDestroy_func
  1019.     res := DllCall(ImageDestroy_func,Int,id)
  1020.     return res
  1021. }
  1022.  
  1023. ImageSetShown(id,show)
  1024. {
  1025.     global ImageSetShown_func
  1026.     res := DllCall(ImageSetShown_func,Int,id,UChar,show)
  1027.     return res
  1028. }
  1029.  
  1030. ImageSetAlign(id,align)
  1031. {
  1032.     global ImageSetAlign_func
  1033.     res := DllCall(ImageSetAlign_func,Int,id,Int,align)
  1034.     return res
  1035. }
  1036.  
  1037. ImageSetPos(id, x, y)
  1038. {
  1039.     global ImageSetPos_func
  1040.     res := DllCall(ImageSetPos_func,Int,id,Int,x, Int, y)
  1041.     return res
  1042. }
  1043.  
  1044. ImageSetRotation(id, rotation)
  1045. {
  1046.     global ImageSetRotation_func
  1047.     res := DllCall(ImageSetRotation_func,Int,id,Int, rotation)
  1048.     return res
  1049. }
  1050.  
  1051. DestroyAllVisual()
  1052. {
  1053.     global DestroyAllVisual_func
  1054.     res := DllCall(DestroyAllVisual_func)
  1055.     return res
  1056. }
  1057.  
  1058. ShowAllVisual()
  1059. {
  1060.     global ShowAllVisual_func
  1061.     res := DllCall(ShowAllVisual_func)
  1062.     return res
  1063. }
  1064.  
  1065. HideAllVisual()
  1066. {
  1067.     global HideAllVisual_func
  1068.     res := DllCall(HideAllVisual_func )
  1069.     return res
  1070. }
  1071.  
  1072.  
  1073.  
  1074. ;////////////////// CALLBACK ///////////////////
  1075. ;////////////////// CALLBACK ///////////////////
  1076. ;////////////////// CALLBACK ///////////////////
  1077.  
  1078. SetListenCallback(int_Id)
  1079. {
  1080.     global SetListenCallback_func
  1081.     res := DllCall(SetListenCallback_func, Int, int_Id)
  1082.     return res
  1083. }
  1084.  
  1085. UnSetCallbackPointer()
  1086. {
  1087.     global UnSetCallbackPointer_func
  1088.     res := DllCall(UnSetCallbackPointer_func)
  1089.     return res
  1090. }
  1091.  
  1092. SetCallbackPointer(int_Id)
  1093. {
  1094.     global SetCallbackPointer_func
  1095.     res := DllCall(SetCallbackPointer_func, Int, int_Id)
  1096.     return res
  1097. }
  1098.  
  1099. UnSetListenCallback(int_Id)
  1100. {
  1101.     global UnSetListenCallback_func
  1102.     res := DllCall(UnSetListenCallback_func, Int, int_Id)
  1103.     return res
  1104. }
  1105. UnSetListenCallbackAll()
  1106. {
  1107.     global UnSetListenCallbackAll_func
  1108.     res := DllCall(UnSetListenCallbackAll_func)
  1109.     return res
  1110. }
  1111.  
  1112. GetCallbackHealParams(ptr_HealStruct, ByRef iOldHeal, ByRef iNewHeal)
  1113. {
  1114.         ioldHeal := NumGet(ptr_HealStruct+0, "int")
  1115.         inewHeal := NumGet(ptr_HealStruct+4, "int")
  1116. }
  1117.  
  1118. GetCallbackArmorParams(ptr_ArmorStruct, ByRef iOldArmor, ByRef iNewArmor)
  1119. {
  1120.         ioldArmor := NumGet(ptr_ArmorStruct+0, "int")
  1121.         inewArmor := NumGet(ptr_ArmorStruct+4, "int")
  1122. }
  1123.  
  1124. GetCallbackPositionParams(ptr_PositionStruct, ByRef fOldPosX, ByRef fOldPosY, ByRef fOldPosZ, ByRef fOldPosR, ByRef fNewPosX, ByRef fNewPosY, ByRef fNewPosZ, ByRef fNewPosR)
  1125. {
  1126.         fOldPosX := NumGet(ptr_PositionStruct+0, "float")
  1127.         fOldPosY := NumGet(ptr_PositionStruct+4, "float")
  1128.         fOldPosZ := NumGet(ptr_PositionStruct+8, "float")
  1129.         fOldPosR := NumGet(ptr_PositionStruct+12, "float")
  1130.         fNewPosX := NumGet(ptr_PositionStruct+16, "float")
  1131.         fNewPosY := NumGet(ptr_PositionStruct+20, "float")
  1132.         fNewPosZ := NumGet(ptr_PositionStruct+24, "float")
  1133.         fNewPosR := NumGet(ptr_PositionStruct+28, "float")
  1134. }
  1135.  
  1136. GetCallbackEnterExitParams(ptr_EnterExitStruct, ByRef iOldInteriorState, ByRef iNewInteriorState)
  1137. {
  1138.         iOldInteriorState := NumGet(ptr_EnterExitStruct+0, "int")
  1139.         iNewInteriorState := NumGet(ptr_EnterExitStruct+4, "int")
  1140. }
  1141.  
  1142. GetCallbackVehicleEnterExitParams(ptr_VehicleEnterExitStruct, ByRef iOldVehicleEnterExit, ByRef iNewVehicleEnterExit)
  1143. {
  1144.         iOldVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+0, "int")
  1145.         iNewVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+4, "int")
  1146. }
  1147.  
  1148. GetCallbackVehicleHealthParams(ptr_VehicleHealthStruct, ByRef iOldVehicleHealth, ByRef iNewVehicleHealth)
  1149. {
  1150.         iOldVehicleHealth := NumGet(ptr_VehicleHealthStruct+0, "int")
  1151.         iNewVehicleHealth := NumGet(ptr_VehicleHealthStruct+4, "int")
  1152. }
  1153.  
  1154. GetCallbackVehicleEngineParams(ptr_VehicleEngineStruct, ByRef iOldVehicleEngine, ByRef iNewVehicleEngine)
  1155. {
  1156.         iOldVehicleEngine := NumGet(ptr_VehicleEngineStruct+0, "int")
  1157.         iNewVehicleEngine := NumGet(ptr_VehicleEngineStruct+4, "int")
  1158. }
  1159.  
  1160. GetCallbackVehicleLockParams(ptr_VehicleLockStruct, ByRef iOldVehicleLock, ByRef iNewVehicleLock)
  1161. {
  1162.         iOldVehicleLock := NumGet(ptr_VehicleLockStruct+0, "int")
  1163.         iNewVehicleLock := NumGet(ptr_VehicleLockStruct+4, "int")
  1164. }
  1165.  
  1166. GetCallbackVehicleSpeedParams(ptr_VehicleSpeedStruct, ByRef iOldVehicleSpeed, ByRef iNewVehicleSpeed)
  1167. {
  1168.         iOldVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+0, "int")
  1169.         iNewVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+4, "int")
  1170. }
  1171.  
  1172. GetCallbackWeaponSwitchParams(ptr_WeaponSwitchStruct, ByRef iOldWeaponId, ByRef iNewWeaponId)
  1173. {
  1174.         iOldWeaponId := NumGet(ptr_WeaponSwitchStruct+0, "int")
  1175.         iNewWeaponId := NumGet(ptr_WeaponSwitchStruct+4, "int")
  1176. }
  1177.  
  1178. GetCallbackWeaponClipParams(ptr_WeaponClipStruct, ByRef iOldWeaponClip, ByRef iNewWeaponClip)
  1179. {
  1180.         iOldWeaponClip := NumGet(ptr_WeaponClipStruct+0, "int")
  1181.         iNewWeaponClip := NumGet(ptr_WeaponClipStruct+4, "int")
  1182. }
  1183.  
  1184. GetCallbackWeaponTotalClipParams(ptr_WeaponTotalClipStruct, ByRef iOldWeaponTotalClip, ByRef iNewWeaponTotalClip)
  1185. {
  1186.         iOldWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+0, "int")
  1187.         iNewWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+4, "int")
  1188. }
  1189.  
  1190. GetCallbackChatlogParams(ptr_ChatlogStruct, ByRef string)
  1191. {
  1192.         VarSetCapacity(string, 256, 0)
  1193.         string := StrGet(ptr_ChatlogStruct)
  1194. }
  1195.  
  1196. UpdateServerData()
  1197. {
  1198.     global UpdateServerData_func
  1199.     res := DllCall(UpdateServerData_func)
  1200.     return res
  1201. }
  1202.  
  1203. GetPlayerNameById(id,ByRef name)
  1204. {
  1205.     VarSetCapacity(name,24,0)
  1206.     global GetPlayerNameById_func
  1207.     res := DllCall(GetPlayerNameById_func,UShort,id,StrP,name)
  1208.     return res
  1209. }
  1210.  
  1211. GetPlayerIdByName(name)
  1212. {
  1213.     global GetPlayerIdByName_func
  1214.     res := DllCall(GetPlayerIdByName_func,Str,name)
  1215.     return res
  1216. }
  1217.  
  1218.  
  1219.  
  1220.  
  1221. DecimalToHex(Var){
  1222.     ; Convert a decimal integer to hexadecimal:
  1223.     SetFormat, IntegerFast, hex
  1224.     Dec2Hex += Var ; Sets Dec2Hex (which previously contained 11) to be 0xb.
  1225.     Dec2Hex .= "" ; Necessary due to the "fast" mode.
  1226.     SetFormat, IntegerFast, d
  1227.     StringTrimLeft, Dec2Hex, Dec2Hex, 2 ; removes 0x from the string
  1228.     StringUpper, Dec2Hex, Dec2Hex ; makes it all caps
  1229.     sDec2Hex .= Dec2Hex
  1230.     return sDec2Hex
  1231. }
  1232.  
  1233. RelToAbs(root, dir, s = "\") {
  1234.     pr := SubStr(root, 1, len := InStr(root, s, "", InStr(root, s . s) + 2) - 1)
  1235.         , root := SubStr(root, len + 1), sk := 0
  1236.     If InStr(root, s, "", 0) = StrLen(root)
  1237.         StringTrimRight, root, root, 1
  1238.     If InStr(dir, s, "", 0) = StrLen(dir)
  1239.         StringTrimRight, dir, dir, 1
  1240.     Loop, Parse, dir, %s%
  1241.     {
  1242.         If A_LoopField = ..
  1243.             StringLeft, root, root, InStr(root, s, "", 0) - 1
  1244.         Else If A_LoopField =
  1245.             root =
  1246.         Else If A_LoopField != .
  1247.             Continue
  1248.         StringReplace, dir, dir, %A_LoopField%%s%
  1249.     }
  1250.     Return, pr . root . s . dir
  1251. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement