Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinActive, GTA:SA:MP
- #UseHook
- #NoEnv
- global ERROR_OK := 0
- global ERROR_PROCESS_NOT_FOUND := 1
- global ERROR_OPEN_PROCESS := 2
- global ERROR_INVALID_HANDLE := 3
- global ERROR_MODULE_NOT_FOUND := 4
- global ERROR_ENUM_PROCESS_MODULES := 5
- global ERROR_ZONE_NOT_FOUND := 6
- global ERROR_CITY_NOT_FOUND := 7
- global ERROR_READ_MEMORY := 8
- global ERROR_WRITE_MEMORY := 9
- global ERROR_ALLOC_MEMORY := 10
- global ERROR_FREE_MEMORY := 11
- global ERROR_WAIT_FOR_OBJECT := 12
- global ERROR_CREATE_THREAD := 13
- global ADDR_ZONECODE := 0xA49AD4
- global ADDR_POSITION_X := 0xB6F2E4
- global ADDR_POSITION_Y := 0xB6F2E8
- global ADDR_POSITION_Z := 0xB6F2EC
- global ADDR_CPED_PTR := 0xB6F5F0
- global ADDR_CPED_HPOFF := 0x540
- global ADDR_CPED_ARMOROFF := 0x548
- global ADDR_VEHICLE_PTR := 0xBA18FC
- global ADDR_VEHICLE_HPOFF := 0x4C0
- global ADDR_CPED_MONEY := 0x0B7CE54
- global ADDR_CPED_INTID := 0xA4ACE8
- global ADDR_VEHICLE_DOORSTATE := 0x4F8
- global ADDR_VEHICLE_ENGINESTATE := 0x428
- global ADDR_VEHICLE_LIGHTSTATE := 0x584
- global ADDR_VEHICLE_MODEL := 0x22
- global ADDR_VEHICLE_TYPE := 0x590
- global ADDR_VEHICLE_DRIVER := 0x460
- global oAirplaneModels := [417, 425, 447, 460, 469, 476, 487, 488, 497, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593]
- global oBikeModels := [481,509,510]
- global ovehicleNames := ["Landstalker","Bravura","Buffalo","Linerunner","Perrenial","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Whoopee","BFInjection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RCBandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley'sRCVan","Skimmer","PCJ-600","Faggio","Freeway","RCBaron","RCRaider","Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","NewsChopper","Rancher","FBIRancher","Virgo","Greenwood","Jetmax","Hotring","Sandking","BlistaCompact","PoliceMaverick","Boxvillde","Benson","Mesa","RCGoblin","HotringRacerA","HotringRacerB","BloodringBanger","Rancher","SuperGT","Elegant","Journey","Bike","MountainBike","Beagle","Cropduster","Stunt","Tanker","Roadtrain","Nebula","Majestic","Buccaneer","Shamal","hydra","FCR-900","NRG-500","HPV1000","CementTruck","TowTruck","Fortune","Cadrona","FBITruck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster","Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RCTiger","Flash","Tahoma","Savanna","Bandito","FreightFlat","StreakCarriage","Kart","Mower","Dune","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","NewsVan","Tug","Trailer","Emperor","Wayfarer","Euros","Hotdog","Club","FreightBox","Trailer","Andromada","Dodo","RCCam","Launch","PoliceCar","PoliceCar","PoliceCar","PoliceRanger","Picador","S.W.A.T","Alpha","Phoenix","GlendaleShit","SadlerShit","Luggage","Luggage","Stairs","Boxville","Tiller","UtilityTrailer"]
- global ADDR_SAMP_INCHAT_PTR := 0x21a10c
- global ADDR_SAMP_INCHAT_PTR_OFF := 0x55
- global ADDR_SAMP_USERNAME := 0x219A6F
- global ADDR_SAMP_CHATMSG_PTR := 0x21a0e4
- global ADDR_SAMP_SHOWDLG_PTR := 0x21a0b8
- global FUNC_SAMP_SENDCMD := 0x65c60
- global FUNC_SAMP_SENDSAY := 0x57f0
- global FUNC_SAMP_ADDTOCHATWND := 0x64520
- global FUNC_SAMP_SHOWGAMETEXT := 0x9c2c0
- global FUNC_SAMP_PLAYAUDIOSTR := 0x62da0
- global FUNC_SAMP_STOPAUDIOSTR := 0x629a0
- global FUNC_SAMP_SHOWDIALOG := 0x6B9C0
- global FUNC_UPDATESCOREBOARD := 0x8a10
- global SAMP_INFO_OFFSET := 0x21a0f8
- global SAMP_PPOOLS_OFFSET := 0x3CD
- global SAMP_PPOOL_PLAYER_OFFSET := 0x18
- global SAMP_SLOCALPLAYERID_OFFSET := 0x4
- global SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET := 0x1A
- global SAMP_SZLOCALPLAYERNAME_OFFSET := 0xA
- global SAMP_PSZLOCALPLAYERNAME_OFFSET := 0xA
- global SAMP_PREMOTEPLAYER_OFFSET := 0x2E
- global SAMP_ISTRLENNAME___OFFSET := 0x1C
- global SAMP_SZPLAYERNAME_OFFSET := 0xC
- global SAMP_PSZPLAYERNAME_OFFSET := 0xC
- global SAMP_ILOCALPLAYERPING_OFFSET := 0x26
- global SAMP_ILOCALPLAYERSCORE_OFFSET := 0x2A
- global SAMP_IPING_OFFSET := 0x28
- global SAMP_ISCORE_OFFSET := 0x24
- global SAMP_ISNPC_OFFSET := 0x4
- global SAMP_PLAYER_MAX := 1004
- global SIZE_SAMP_CHATMSG := 0xFC
- global hGTA := 0x0
- global dwGTAPID := 0x0
- global dwSAMP := 0x0
- global pMemory := 0x0
- global pParam1 := 0x0
- global pParam2 := 0x0
- global pParam3 := 0x0
- global pInjectFunc := 0x0
- global nZone := 1
- global nCity := 1
- global bInitZaC := 0
- global iRefreshScoreboard := 0
- global oScoreboardData := ""
- global iRefreshHandles := 0
- global iUpdateTick := 2500
- ; Error-Codes
- API_ERROR_NONE := 0
- API_ERROR_SNAPSHOT_FAILED := 1
- API_ERROR_SAMP_NOT_FOUND := 2
- API_ERROR_REMOTE_MEMORY_ALLOCATION_FAILED := 3
- API_ERROR_WRITEPROCESSMEMORY_FAILED := 4
- API_ERROR_GETPROCADDRESS_FAILED := 5
- API_ERROR_REMOTETHREAD_FAILED := 6
- API_ERROR_INVALID_GTA_HANDLE := 7
- API_ERROR_PIPE_DOESNT_RESPOND := 8
- API_ERROR_STRING_TOO_LONG := 9
- PLAYER_STATE_LEAVING_VEHICLE := 0
- PLAYER_STATE_NORMAL := 1
- PLAYER_STATE_DRIVING := 50
- PLAYER_STATE_DYING := 54
- PLAYER_STATE_DEAD := 55
- CALLBACK_HEAL := 0
- CALLBACK_ARMOR := 1
- CALLBACK_POSITION := 2
- CALLBACK_ENTEREXIT := 3
- CALLBACK_VEHICLE_ENTEREXIT := 4
- CALLBACK_VEHICLE_HEALTH := 5
- CALLBACK_VEHICLE_ENGINE := 6
- CALLBACK_VEHICLE_LOCK := 7
- CALLBACK_VEHICLE_SPEED := 8
- CALLBACK_WEAPON_CLIP := 9
- CALLBACK_WEAPON_TOTALCLIP := 10
- CALLBACK_WEAPON_SWITCH := 11
- CALLBACK_CHATLOG := 12
- PATH_API := RelToAbs(A_ScriptDir, "API.dll")
- hModule := DllCall("LoadLibrary", Str, PATH_API)
- if(hModule == -1 || hModule == 0)
- ; Funktionsadressen in der DLL
- Init_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_Init")
- SetParam_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetParam")
- ReadMemory_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ReadMemory")
- WriteMemory_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_WriteMemory")
- GetBasePointer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetBasePointer")
- GetCommandLine_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCommandLine")
- GetLastError_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastError")
- SetLastError_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetLastError")
- SendChat_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SendChat")
- ShowGameText_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowGameText")
- AddChatMessage_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_AddChatMessage")
- ShowDialog_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowDialog")
- IsDialogOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsDialogOpen")
- GetLastDialogId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogId")
- GetLastDialogType_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastDialogType")
- BlockChatInput_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BlockChatInput")
- GetChatLine_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLine")
- GetChatLineFromFile_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetChatLineFromFile")
- IsChatOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsChatOpen")
- GetScreenSizeX_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeX")
- GetScreenSizeY_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetScreenSizeY")
- GetFramerate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetFramerate")
- GetCurrentWeatherId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCurrentWeatherId")
- GetZoneName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneName")
- GetCityName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityName")
- GetZoneNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetZoneNameByCoords")
- GetCityNameByCoords_func:= DllCall("GetProcAddress", UInt, hModule, Str, "API_GetCityNameByCoords")
- GetMarkerPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMarkerPos")
- GetLastMousePosOnMenuMap_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetLastMousePosOnMenuMap")
- GetMapMarkerPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetMapMarkerPos")
- FindGroundZForPosition_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_FindGroundZForPosition")
- WorldToScreen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_WorldToScreen")
- ScreenToWorld_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ScreenToWorld")
- RegisterTextBind_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_RegisterTextBind")
- UnregisterTextBind_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterTextBind")
- UnregisterAllTextBinds_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnregisterAllTextBinds")
- TextBindTimer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextBindTimer")
- IsMenuOpen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsMenuOpen")
- GetPlayerId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerId")
- GetPlayerName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerName")
- GetServerIp_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerIp")
- GetServerPort_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetServerPort")
- ; //////////////////
- ; CPed.h
- ; //////////////////
- GetPlayerCPed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerCPed")
- GetPlayerHealth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerHealth")
- GetPlayerArmor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerArmor")
- GetPlayerMoney_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerMoney")
- GetPlayerWanteds_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWanteds")
- GetPlayerPosition_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerPosition")
- IsPlayerInRangeOfPoint_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint")
- IsPlayerInRangeOfPoint2D_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInRangeOfPoint2D")
- IsPlayerInAnyInterior_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyInterior")
- IsPlayerFrozen_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerFrozen")
- GetPlayerWeaponSlot_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponSlot")
- GetPlayerWeaponId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponId")
- GetPlayerWeaponName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponName")
- GetPlayerWeaponClip_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponClip")
- GetPlayerWeaponTotalClip_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponTotalClip")
- GetPlayerWeaponState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerWeaponState")
- GetPlayerState_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerState")
- ; //////////////////
- ; Vehicle.h
- ; //////////////////
- GetVehiclePointer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehiclePointer")
- GetVehicleModelId_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelId")
- GetVehicleModelName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelName")
- GetVehicleModelNameById_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleModelNameById")
- GetVehicleType_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleType")
- GetVehicleHealth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleHealth")
- GetVehicleRadioStation_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStation")
- GetVehicleRadioStationName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleRadioStationName")
- GetVehicleFreeSeats_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFreeSeats")
- GetVehicleSpeed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSpeed")
- GetVehicleFirstColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleFirstColor")
- GetVehicleSecondColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleSecondColor")
- GetVehicleColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColor")
- GetVehicleColorRGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorRGB")
- GetVehicleColorARGB_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetVehicleColorARGB")
- IsPlayerInAnyVehicle_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInAnyVehicle")
- IsPlayerDriver_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerDriver")
- IsPlayerPassenger_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerPassenger")
- IsVehicleSeatUsed_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSeatUsed")
- IsVehicleLocked_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLocked")
- IsVehicleSirenEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleSirenEnabled")
- IsVehicleHornEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleHornEnabled")
- IsVehicleAlternateSirenEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleAlternateSirenEnabled")
- IsVehicleEngineEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleEngineEnabled")
- IsVehicleLightEnabled_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsVehicleLightEnabled")
- IsPlayerInCar_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInCar")
- IsPlayerInPlane_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInPlane")
- IsPlayerInBoat_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBoat")
- IsPlayerInTrain_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInTrain")
- IsPlayerInBike_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_IsPlayerInBike")
- ; //////////////////
- ; Draw
- ; //////////////////
- TextCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextCreate")
- TextDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextDestroy")
- TextSetShadow_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShadow")
- TextSetShown_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetShown")
- TextSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetColor")
- TextSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetPos")
- TextSetString_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextSetString")
- TextUpdate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_TextUpdate")
- BoxCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxCreate")
- BoxDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxDestroy")
- BoxSetShown_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetShown")
- BoxSetBorder_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorder")
- BoxSetBorderColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetBorderColor")
- BoxSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetColor")
- BoxSetHeight_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetHeight")
- BoxSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetPos")
- BoxSetWidth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_BoxSetWidth")
- LineCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineCreate")
- LineDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineDestroy")
- LineSetShown_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetShown")
- LineSetColor_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetColor")
- LineSetWidth_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetWidth")
- LineSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_LineSetPos")
- ImageCreate_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageCreate")
- ImageDestroy_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageDestroy")
- ImageSetShown_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetShown")
- ImageSetAlign_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetAlign")
- ImageSetPos_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetPos")
- ImageSetRotation_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ImageSetRotation")
- DestroyAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_DestroyAllVisual")
- ShowAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_ShowAllVisual")
- HideAllVisual_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_HideAllVisual")
- ; ////////////////
- ; CALLBACK
- ; ////////////////
- SetCallbackPointer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetCallbackPointer")
- UnSetCallbackPointer_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetCallbackPointer")
- SetListenCallback_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_SetListenCallback")
- UnSetListenCallback_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallback")
- UnSetListenCallbackAll_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UnSetListenCallbackAll")
- ; ////////////////
- ; PlayerData.h
- ; ////////////////
- UpdateServerData_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_UpdateServerData")
- GetPlayerNameById_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerNameById")
- GetPlayerIdByName_func := DllCall("GetProcAddress", UInt, hModule, Str, "API_GetPlayerIdByName")
- Init()
- {
- global Init_func
- res := DllCall(Init_func)
- return res
- }
- SetParam(str_Name, str_Value)
- {
- global SetParam_func
- res := DllCall(SetParam_func, Str, str_Name, Str, str_Value)
- return res
- }
- ReadMemory(addr, size, ByRef data)
- {
- global ReadMemory_func
- VarSetCapacity(data,size)
- res := DllCall(ReadMemory_func, UInt, addr, UInt, size, StrP, data)
- return res
- }
- WriteMemory(addr, size, data)
- {
- global WriteMemory_func
- res := DllCall(WriteMemory_func, UInt, addr, UInt, size, Str, data)
- return res
- }
- GetBasePointer(dll)
- {
- global GetBasePointer_func
- res :=DllCall(GetBasePointer_func, Str, dll)
- return res
- }
- GetCommandLine(ByRef line)
- {
- global GetCommandLine_func
- VarSetCapacity(line,512,0)
- res := DllCall(GetCommandLine_func, StrP, line)
- return res
- }
- GetLastError()
- {
- global GetLastError_func
- res:=DllCall(GetLastError_func)
- return res
- }
- SetLastError(error)
- {
- global SetLastError_func
- res := DllCall(SetLastError_func, Int, error)
- return res
- }
- SendChat(msg)
- {
- global SendChat_func
- res := DllCall(SendChat_func, Str, msg)
- return res
- }
- ShowGameText(str_Text, int_Time, int_Style)
- {
- global ShowGameText_func
- res := DllCall(ShowGameText_func,Str , str_Text, Int, int_Time, Int, int_Style)
- return res
- }
- AddChatMessage(int_Color, str_Text)
- {
- global AddChatMessage_func
- res := DllCall(AddChatMessage_func, Int, int_Color, Str, str_Text)
- return res
- }
- ShowDialog(style, caption, text, button)
- {
- global ShowDialog_func
- res := DllCall(ShowDialog_func, Int, style, Str, caption, Str, text, Str, button)
- return res
- }
- IsDialogOpen()
- {
- global IsDialogOpen_func
- res := DllCall(IsDialogOpen_func)
- return res
- }
- GetLastDialogId()
- {
- global GetLastDialogId_func
- res := DllCall(GetLastDialogId_func)
- return res
- }
- GetLastDialogType()
- {
- global GetLastDialogType_func
- res := DllCall(GetLastDialogType_func)
- return res
- }
- BlockChatInput(block)
- {
- global BlockChatInput_func
- res := DllCall(BlockChatInput_func,UChar,block)
- return res
- }
- GetChatLine(id, ByRef line)
- {
- global GetChatLine_func
- VarSetCapacity(line,256,0)
- res := DllCall(GetChatLine_func,Int,id,StrP,line)
- return res
- }
- GetChatLineFromFile(id, ByRef line)
- {
- global GetChatLineFromFile_func
- VarSetCapacity(line,256,0)
- res := DllCall(GetChatLineFromFile_func,Int,id,StrP,line)
- return res
- }
- IsChatOpen()
- {
- global IsChatOpen_func
- res := DllCall(IsChatOpen_func)
- return res
- }
- GetScreenSizeX()
- {
- global GetScreenSizeX_func
- res := DllCall(GetScreenSizeX_func)
- return res
- }
- GetScreenSizeY()
- {
- global GetScreenSizeY_func
- res := DllCall(GetScreenSizeY_func)
- return res
- }
- GetFramerate()
- {
- global GetFramerate_func
- res := DllCall(GetFramerate_func)
- return res
- }
- GetCurrentWeatherId()
- {
- global GetCurrentWeatherId_func
- res := DllCall(GetCurrentWeatherId_func)
- return res
- }
- GetZoneName( ByRef str_ZoneName)
- {
- global GetZoneName_func
- VarSetCapacity(str_ZoneName, 32)
- res := DllCall(GetZoneName_func, StrP, str_ZoneName)
- return res
- }
- GetCityName( ByRef str_CityName)
- {
- global GetCityName_func
- VarSetCapacity(str_CityName, 32)
- res := DllCall(GetCityName_func, StrP, str_CityName)
- return res
- }
- GetZoneNameByCoords(x, y, ByRef str_ZoneName)
- {
- global GetZoneNameByCoords_func
- VarSetCapacity(str_ZoneName, 32)
- res := DllCall(GetZoneNameByCoords_func, Float, x, Float, y, StrP, str_ZoneName)
- return res
- }
- GetCityNameByCoords(x, y, ByRef str_CityName)
- {
- global GetCityNameByCoords_func
- VarSetCapacity(str_CityName, 32)
- res := DllCall(GetCityNameByCoords_func, Float, x, Float, y, StrP, str_CityName)
- return res
- }
- GetMarkerPos(ByRef x, ByRef y, ByRef z)
- {
- global GetMarkerPos_func
- res := DllCall(GetMarkerPos_func, FloatP, x, FloatP, y, FloatP, z)
- return res
- }
- GetLastMousePosOnMenuMap(ByRef x, ByRef y)
- {
- global GetLastMousePosOnMenuMap_func
- res := DllCall(GetLastMousePosOnMenuMap_func, FloatP, x, FloatP, y)
- return res
- }
- GetMapMarkerPos(ByRef x, ByRef y)
- {
- global GetMapMarkerPos_func
- res := DllCall(GetMapMarkerPos_func, FloatP, x, FloatP, y)
- return res
- }
- FindGroundZForPosition(x,y)
- {
- global FindGroundZForPosition_func
- res := DllCall(FindGroundZForPosition_func, Float, x, Float, y, "Cdecl float")
- return res
- }
- WorldToScreen(worldX, worldY, worldZ, ByRef screenX, ByRef screenY)
- {
- global WorldToScreen_func
- res := DllCall(WorldToScreen_func, Float, worldX, Float, worldY, Float, worldZ, FloatP, screenX, FloatP, screenY)
- return res
- }
- ScreenToWorld(screenX, screenY, ByRef worldX, ByRef worldY, ByRef worldZ)
- {
- global ScreenToWorld_func
- res := DllCall(ScreenToWorld_func, Float, screenX, Float, screenY, FloatP, worldX, FloatP, worldY, FloatP, worldZ)
- return res
- }
- RegisterTextBind(str_TextBind, float_PosX, float_PosY, float_PosZ, float_Radius, int_Delay, int_Loop, int_GroupId, int_isChild, int_Timeout)
- {
- global RegisterTextBind_func
- 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)
- return res
- }
- UnregisterTextBind(int_TextBindId)
- {
- global UnregisterTextBind_func
- res := DllCall(UnregisterTextBind_func, Int, int_TextBindId)
- return res
- }
- UnregisterAllTextBinds()
- {
- global UnregisterAllTextBinds_func
- res := DllCall(UnregisterAllTextBinds_func)
- return res
- }
- TextBindTimer(int_TextBindSleep)
- {
- global TextBindTimer_func
- res := DllCall(TextBindTimer_func, Int, int_TextBindSleep)
- return res
- }
- IsMenuOpen()
- {
- global IsMenuOpen_func
- res := DllCall(IsMenuOpen_func)
- return res
- }
- GetPlayerId()
- {
- global GetPlayerId_func
- res := DllCall(GetPlayerId_func)
- return res
- }
- GetPlayerName(ByRef szName)
- {
- global GetPlayerName_func
- VarSetCapacity(szName,25)
- res := DllCall(GetPlayerName_func, StrP, szName)
- return res
- }
- GetServerIp(ByRef szHost)
- {
- global GetServerIp_func
- VarSetCapacity(szHost, 30)
- res := DllCall(GetServerIp_func, StrP, szHost)
- return res
- }
- GetServerPort()
- {
- global GetServerPort_func
- res := DllCall(GetServerPort_func)
- return res
- }
- ; /////////////////////// CPED ////////////////////////////
- ; /////////////////////// CPED ////////////////////////////
- ; /////////////////////// CPED ////////////////////////////
- GetPlayerCPed()
- {
- global GetPlayerCPed_func
- res :=DllCall(GetPlayerCPed_func)
- return res
- }
- GetPlayerHealth()
- {
- global GetPlayerHealth_func
- res := DllCall(GetPlayerHealth_func)
- return res
- }
- GetPlayerArmor()
- {
- global GetPlayerArmor_func
- res := DllCall(GetPlayerArmor_func)
- return res
- }
- GetPlayerMoney()
- {
- global GetPlayerMoney_func
- res := DllCall(GetPlayerMoney_func)
- return res
- }
- GetPlayerWanteds()
- {
- global GetPlayerWanteds_func
- res := DllCall(GetPlayerWanteds_func)
- return res
- }
- GetPlayerPosition(ByRef flo_posX, ByRef flo_posY, ByRef flo_posZ, ByRef flo_Rotation)
- {
- global GetPlayerPosition_func
- res := DllCall(GetPlayerPosition_func, FloatP, flo_posX, FloatP, flo_posY, FloatP, flo_posZ, FloatP, flo_Rotation)
- return res
- }
- IsPlayerInRangeOfPoint(flo_posX, flo_posY, flo_posZ, flo_posRadius)
- {
- global IsPlayerInRangeOfPoint_func
- res := DllCall(IsPlayerInRangeOfPoint_func, Float, flo_posX, Float, flo_posY, Float, flo_posZ, Float, flo_posRadius)
- return res
- }
- IsPlayerInRangeOfPoint2D(flo_posX, flo_posY, flo_posRadius)
- {
- global IsPlayerInRangeOfPoint2D_func
- res := DllCall(IsPlayerInRangeOfPoint2D_func, Float, flo_posX, Float, flo_posY, Float, flo_posRadius)
- return res
- }
- IsPlayerInAnyInterior()
- {
- global IsPlayerInAnyInterior_func
- res := DllCall(IsPlayerInAnyInterior_func)
- return res
- }
- IsPlayerFrozen()
- {
- global IsPlayerFrozen_func
- res := DllCall(IsPlayerFrozen_func)
- return res
- }
- GetPlayerWeaponSlot()
- {
- global GetPlayerWeaponSlot_func
- res := DllCall(GetPlayerWeaponSlot_func)
- return res
- }
- GetPlayerWeaponId(int_WeaponSlot)
- {
- global GetPlayerWeaponId_func
- res := DllCall(GetPlayerWeaponId_func, Int, int_WeaponSlot)
- return res
- }
- GetPlayerWeaponName(int_WeaponSlot, ByRef str_WeapName)
- {
- global GetPlayerWeaponName_func
- VarSetCapacity(str_WeapName, 32)
- res := DllCall(GetPlayerWeaponName_func, Int, int_WeaponSlot, StrP, str_WeapName)
- return res
- }
- GetPlayerWeaponClip(int_WeaponSlot)
- {
- global GetPlayerWeaponClip_func
- res := DllCall(GetPlayerWeaponClip_func, Int, int_WeaponSlot)
- return res
- }
- GetPlayerWeaponTotalClip(int_WeaponSlot)
- {
- global GetPlayerWeaponTotalClip_func
- res := DllCall(GetPlayerWeaponTotalClip_func, Int, int_WeaponSlot)
- return res
- }
- GetPlayerWeaponState()
- {
- global GetPlayerWeaponState_func
- res := DllCall(GetPlayerWeaponState_func)
- return res
- }
- GetPlayerState()
- {
- global GetPlayerState_func
- res := DllCall(GetPlayerState_func)
- return res
- }
- ; /////////////////////// VEHICLE ////////////////////////////
- ; /////////////////////// VEHICLE ////////////////////////////
- ; /////////////////////// VEHICLE ////////////////////////////
- GetVehiclePointer()
- {
- global GetVehiclePointer_func
- res := DllCall(GetVehiclePointer_func)
- return res
- }
- GetVehicleModelId()
- {
- global GetVehicleModelId_func
- res := DllCall(GetVehicleModelId_func)
- return res
- }
- GetVehicleModelName(ByRef str_VehicleName)
- {
- global GetVehicleModelName_func
- VarSetCapacity(str_VehicleName, 32)
- res := DllCall(GetVehicleModelName_func, StrP, str_VehicleName)
- return res
- }
- GetVehicleModelNameById(int_VehicleId, ByRef str_VehicleName)
- {
- global GetVehicleModelNameById_func
- VarSetCapacity(str_VehicleName, 32)
- res := DllCall(GetVehicleModelNameById_func, Int, int_VehicleId, StrP, str_VehicleName)
- return res
- }
- GetVehicleType()
- {
- global GetVehicleType_func
- res := DllCall(GetVehicleType_func)
- return res
- }
- GetVehicleHealth()
- {
- global GetVehicleHealth_func
- res := DllCall(GetVehicleHealth_func)
- return res
- }
- GetVehicleRadioStation()
- {
- global GetVehicleRadioStation_func
- res := DllCall(GetVehicleRadioStation_func)
- return res
- }
- GetVehicleRadioStationName(ByRef str_RadioName)
- {
- global GetVehicleRadioStationName_func
- VarSetCapacity(str_RadioName, 32)
- res := DllCall(GetVehicleRadioStationName_func, StrP, str_RadioName)
- return res
- }
- GetVehicleFreeSeats(ByRef int_SeatFL, ByRef int_SeatFR, ByRef int_SeatBL, ByRef int_SeatBR)
- {
- global GetVehicleFreeSeats_func
- res := DllCall(GetVehicleFreeSeats_func, IntP, int_SeatFL, IntP, int_SeatFR, IntP, int_SeatBL, IntP, int_SeatBR)
- return res
- }
- GetVehicleSpeed(float_SpeedMult)
- {
- global GetVehicleSpeed_func
- res := DllCall(GetVehicleSpeed_func, Float, float_SpeedMult)
- return res
- }
- GetVehicleFirstColor()
- {
- global GetVehicleFirstColor_func
- res := DllCall(GetVehicleFirstColor_func)
- return res
- }
- GetVehicleSecondColor()
- {
- global GetVehicleSecondColor_func
- res := DllCall(GetVehicleSecondColor_func)
- return res
- }
- GetVehicleColor(ByRef int_ColorFirst, ByRef int_ColorSecond)
- {
- global GetVehicleColor_func
- res := DllCall(GetVehicleColor_func, IntP, int_ColorFirst, IntP, int_ColorSecond)
- return res
- }
- GetVehicleColorRGB(int_Color, ByRef uint_ColorRGB)
- {
- global GetVehicleColorRGB_func
- res := DllCall(GetVehicleColorRGB_func, Int, int_Color, UIntP, uint_ColorRGB)
- return res
- }
- GetVehicleColorARGB(int_Color, ByRef uint_ColorARGB)
- {
- global GetVehicleColorARGB_func
- res := DllCall(GetVehicleColorARGB_func, Int, int_Color, UIntP, uint_ColorARGB)
- return res
- }
- IsPlayerInAnyVehicle()
- {
- global IsPlayerInAnyVehicle_func
- res := DllCall(IsPlayerInAnyVehicle_func)
- return res
- }
- IsPlayerDriver()
- {
- global IsPlayerDriver_func
- res := DllCall(IsPlayerDriver_func)
- return res
- }
- IsPlayerPassenger()
- {
- global IsPlayerPassenger_func
- res := DllCall(IsPlayerPassenger_func)
- return res
- }
- IsVehicleSeatUsed(int_SeatId)
- {
- global IsVehicleSeatUsed_func
- res := DllCall(IsVehicleSeatUsed_func, int, int_SeatId)
- return res
- }
- IsVehicleLocked()
- {
- global IsVehicleLocked_func
- res := DllCall(IsVehicleLocked_func)
- return res
- }
- IsVehicleSirenEnabled()
- {
- global IsVehicleSirenEnabled_func
- res := DllCall(IsVehicleSirenEnabled_func)
- return res
- }
- IsVehicleHornEnabled()
- {
- global IsVehicleHornEnabled_func
- res := DllCall(IsVehicleHornEnabled_func)
- return res
- }
- IsVehicleAlternateSirenEnabled()
- {
- global IsVehicleAlternateSirenEnabled_func
- res := DllCall(IsVehicleAlternateSirenEnabled_func)
- return res
- }
- IsVehicleEngineEnabled()
- {
- global IsVehicleEngineEnabled_func
- res := DllCall(IsVehicleEngineEnabled_func)
- return res
- }
- IsVehicleLightEnabled()
- {
- global IsVehicleLightEnabled_func
- res := DllCall(IsVehicleLightEnabled_func)
- return res
- }
- IsPlayerInCar()
- {
- global IsPlayerInCar_func
- res := DllCall(IsPlayerInCar_func)
- return res
- }
- IsPlayerInPlane()
- {
- global IsPlayerInPlane_func
- res := DllCall(IsPlayerInPlane_func)
- return res
- }
- IsPlayerInBoat()
- {
- global IsPlayerInBoat_func
- res := DllCall(IsPlayerInBoat_func)
- return res
- }
- IsPlayerInTrain()
- {
- global IsPlayerInTrain_func
- res := DllCall(IsPlayerInTrain_func)
- return res
- }
- IsPlayerInBike()
- {
- global IsPlayerInBike_func
- res := DllCall(IsPlayerInBike_func)
- return res
- }
- ;////////////////// DRAW ///////////////////
- ;////////////////// DRAW ///////////////////
- ;////////////////// DRAW ///////////////////
- TextCreate(Font, fontsize, bold, italic, x, y, color, text, shadow, show)
- {
- global TextCreate_func
- res := DllCall(TextCreate_func,Str,Font,Int,fontsize,UChar,bold,UChar,italic,Int,x,Int,y,UInt,color,Str,text,UChar,shadow,UChar,show)
- return res
- }
- TextDestroy(id)
- {
- global TextDestroy_func
- res := DllCall(TextDestroy_func,Int,id)
- return res
- }
- TextSetShadow(id, shadow)
- {
- global TextSetShadow_func
- res := DllCall(TextSetShadow_func,Int,id,UChar,shadow)
- return res
- }
- TextSetShown(id, show)
- {
- global TextSetShown_func
- res := DllCall(TextSetShown_func,Int,id,UChar,show)
- return res
- }
- TextSetColor(id,color)
- {
- global TextSetColor_func
- res := DllCall(TextSetColor_func,Int,id,UInt,color)
- return res
- }
- TextSetPos(id,x,y)
- {
- global TextSetPos_func
- res := DllCall(TextSetPos_func,Int,id,Int,x,Int,y)
- return res
- }
- TextSetString(id,Text)
- {
- global TextSetString_func
- res := DllCall(TextSetString_func,Int,id,Str,Text)
- return res
- }
- TextUpdate(id,Font,Fontsize,bold,italic)
- {
- global TextUpdate_func
- res := DllCall(TextUpdate_func,Int,id,Str,Font,int,Fontsize,UChar,bold,UChar,italic)
- return res
- }
- BoxCreate(x,y,width,height,Color,show)
- {
- global BoxCreate_func
- res := DllCall(BoxCreate_func,Int,x,Int,y,Int,width,Int,height,UInt,Color,UChar,show)
- return res
- }
- BoxDestroy(id)
- {
- global BoxDestroy_func
- res := DllCall(BoxDestroy_func,Int,id)
- return res
- }
- BoxSetShown(id,Show)
- {
- global BoxSetShown_func
- res := DllCall(BoxSetShown_func,Int,id,UChar,Show)
- return res
- }
- BoxSetBorder(id,height,Show)
- {
- global BoxSetBorder_func
- res := DllCall(BoxSetBorder_func,Int,id,Int,height,Int,Show)
- return res
- }
- BoxSetBorderColor(id,Color)
- {
- global BoxSetBorderColor_func
- res := DllCall(BoxSetBorderColor_func,Int,id,UInt,Color)
- return res
- }
- BoxSetColor(id,Color)
- {
- global BoxSetColor_func
- res := DllCall(BoxSetColor_func,Int,id,UInt,Color)
- return res
- }
- BoxSetHeight(id,height)
- {
- global BoxSetHeight_func
- res := DllCall(BoxSetHeight_func,Int,id,Int,height)
- return res
- }
- BoxSetPos(id,x,y)
- {
- global BoxSetPos_func
- res := DllCall(BoxSetPos_func,Int,id,Int,x,Int,y)
- return res
- }
- BoxSetWidth(id,width)
- {
- global BoxSetWidth_func
- res := DllCall(BoxSetWidth_func,Int,id,Int,width)
- return res
- }
- LineCreate(x1,y1,x2,y2,width,color,show)
- {
- global LineCreate_func
- res := DllCall(LineCreate_func,Int,x1,Int,y1,Int,x2,Int,y2,Int,Width,UInt,color,UChar,show)
- return res
- }
- LineDestroy(id)
- {
- global LineDestroy_func
- res := DllCall(LineDestroy_func,Int,id)
- return res
- }
- LineSetShown(id,show)
- {
- global LineSetShown_func
- res := DllCall(LineSetShown_func,Int,id,UChar,show)
- return res
- }
- LineSetColor(id,color)
- {
- global LineSetColor_func
- res := DllCall(LineSetColor_func,Int,id,UInt,color)
- return res
- }
- LineSetWidth(id, width)
- {
- global LineSetWidth_func
- res := DllCall(LineSetWidth_func,Int,id,Int,width)
- return res
- }
- LineSetPos(id,x1,y1,x2,y2)
- {
- global LineSetPos_func
- res := DllCall(LineSetPos_func,Int,id,Int,x1,Int,y1,Int,x2,Int,y2)
- return res
- }
- ImageCreate(path, x, y, rotation, align, show)
- {
- global ImageCreate_func
- res := DllCall(ImageCreate_func, Str, path, Int, x, Int, y, Int, rotation, Int, align, UChar, show)
- return res
- }
- ImageDestroy(id)
- {
- global ImageDestroy_func
- res := DllCall(ImageDestroy_func,Int,id)
- return res
- }
- ImageSetShown(id,show)
- {
- global ImageSetShown_func
- res := DllCall(ImageSetShown_func,Int,id,UChar,show)
- return res
- }
- ImageSetAlign(id,align)
- {
- global ImageSetAlign_func
- res := DllCall(ImageSetAlign_func,Int,id,Int,align)
- return res
- }
- ImageSetPos(id, x, y)
- {
- global ImageSetPos_func
- res := DllCall(ImageSetPos_func,Int,id,Int,x, Int, y)
- return res
- }
- ImageSetRotation(id, rotation)
- {
- global ImageSetRotation_func
- res := DllCall(ImageSetRotation_func,Int,id,Int, rotation)
- return res
- }
- DestroyAllVisual()
- {
- global DestroyAllVisual_func
- res := DllCall(DestroyAllVisual_func)
- return res
- }
- ShowAllVisual()
- {
- global ShowAllVisual_func
- res := DllCall(ShowAllVisual_func)
- return res
- }
- HideAllVisual()
- {
- global HideAllVisual_func
- res := DllCall(HideAllVisual_func )
- return res
- }
- ;////////////////// CALLBACK ///////////////////
- ;////////////////// CALLBACK ///////////////////
- ;////////////////// CALLBACK ///////////////////
- SetListenCallback(int_Id)
- {
- global SetListenCallback_func
- res := DllCall(SetListenCallback_func, Int, int_Id)
- return res
- }
- UnSetCallbackPointer()
- {
- global UnSetCallbackPointer_func
- res := DllCall(UnSetCallbackPointer_func)
- return res
- }
- SetCallbackPointer(int_Id)
- {
- global SetCallbackPointer_func
- res := DllCall(SetCallbackPointer_func, Int, int_Id)
- return res
- }
- UnSetListenCallback(int_Id)
- {
- global UnSetListenCallback_func
- res := DllCall(UnSetListenCallback_func, Int, int_Id)
- return res
- }
- UnSetListenCallbackAll()
- {
- global UnSetListenCallbackAll_func
- res := DllCall(UnSetListenCallbackAll_func)
- return res
- }
- GetCallbackHealParams(ptr_HealStruct, ByRef iOldHeal, ByRef iNewHeal)
- {
- ioldHeal := NumGet(ptr_HealStruct+0, "int")
- inewHeal := NumGet(ptr_HealStruct+4, "int")
- }
- GetCallbackArmorParams(ptr_ArmorStruct, ByRef iOldArmor, ByRef iNewArmor)
- {
- ioldArmor := NumGet(ptr_ArmorStruct+0, "int")
- inewArmor := NumGet(ptr_ArmorStruct+4, "int")
- }
- GetCallbackPositionParams(ptr_PositionStruct, ByRef fOldPosX, ByRef fOldPosY, ByRef fOldPosZ, ByRef fOldPosR, ByRef fNewPosX, ByRef fNewPosY, ByRef fNewPosZ, ByRef fNewPosR)
- {
- fOldPosX := NumGet(ptr_PositionStruct+0, "float")
- fOldPosY := NumGet(ptr_PositionStruct+4, "float")
- fOldPosZ := NumGet(ptr_PositionStruct+8, "float")
- fOldPosR := NumGet(ptr_PositionStruct+12, "float")
- fNewPosX := NumGet(ptr_PositionStruct+16, "float")
- fNewPosY := NumGet(ptr_PositionStruct+20, "float")
- fNewPosZ := NumGet(ptr_PositionStruct+24, "float")
- fNewPosR := NumGet(ptr_PositionStruct+28, "float")
- }
- GetCallbackEnterExitParams(ptr_EnterExitStruct, ByRef iOldInteriorState, ByRef iNewInteriorState)
- {
- iOldInteriorState := NumGet(ptr_EnterExitStruct+0, "int")
- iNewInteriorState := NumGet(ptr_EnterExitStruct+4, "int")
- }
- GetCallbackVehicleEnterExitParams(ptr_VehicleEnterExitStruct, ByRef iOldVehicleEnterExit, ByRef iNewVehicleEnterExit)
- {
- iOldVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+0, "int")
- iNewVehicleEnterExit := NumGet(ptr_VehicleEnterExitStruct+4, "int")
- }
- GetCallbackVehicleHealthParams(ptr_VehicleHealthStruct, ByRef iOldVehicleHealth, ByRef iNewVehicleHealth)
- {
- iOldVehicleHealth := NumGet(ptr_VehicleHealthStruct+0, "int")
- iNewVehicleHealth := NumGet(ptr_VehicleHealthStruct+4, "int")
- }
- GetCallbackVehicleEngineParams(ptr_VehicleEngineStruct, ByRef iOldVehicleEngine, ByRef iNewVehicleEngine)
- {
- iOldVehicleEngine := NumGet(ptr_VehicleEngineStruct+0, "int")
- iNewVehicleEngine := NumGet(ptr_VehicleEngineStruct+4, "int")
- }
- GetCallbackVehicleLockParams(ptr_VehicleLockStruct, ByRef iOldVehicleLock, ByRef iNewVehicleLock)
- {
- iOldVehicleLock := NumGet(ptr_VehicleLockStruct+0, "int")
- iNewVehicleLock := NumGet(ptr_VehicleLockStruct+4, "int")
- }
- GetCallbackVehicleSpeedParams(ptr_VehicleSpeedStruct, ByRef iOldVehicleSpeed, ByRef iNewVehicleSpeed)
- {
- iOldVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+0, "int")
- iNewVehicleSpeed := NumGet(ptr_VehicleSpeedStruct+4, "int")
- }
- GetCallbackWeaponSwitchParams(ptr_WeaponSwitchStruct, ByRef iOldWeaponId, ByRef iNewWeaponId)
- {
- iOldWeaponId := NumGet(ptr_WeaponSwitchStruct+0, "int")
- iNewWeaponId := NumGet(ptr_WeaponSwitchStruct+4, "int")
- }
- GetCallbackWeaponClipParams(ptr_WeaponClipStruct, ByRef iOldWeaponClip, ByRef iNewWeaponClip)
- {
- iOldWeaponClip := NumGet(ptr_WeaponClipStruct+0, "int")
- iNewWeaponClip := NumGet(ptr_WeaponClipStruct+4, "int")
- }
- GetCallbackWeaponTotalClipParams(ptr_WeaponTotalClipStruct, ByRef iOldWeaponTotalClip, ByRef iNewWeaponTotalClip)
- {
- iOldWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+0, "int")
- iNewWeaponTotalClip := NumGet(ptr_WeaponTotalClipStruct+4, "int")
- }
- GetCallbackChatlogParams(ptr_ChatlogStruct, ByRef string)
- {
- VarSetCapacity(string, 256, 0)
- string := StrGet(ptr_ChatlogStruct)
- }
- UpdateServerData()
- {
- global UpdateServerData_func
- res := DllCall(UpdateServerData_func)
- return res
- }
- GetPlayerNameById(id,ByRef name)
- {
- VarSetCapacity(name,24,0)
- global GetPlayerNameById_func
- res := DllCall(GetPlayerNameById_func,UShort,id,StrP,name)
- return res
- }
- GetPlayerIdByName(name)
- {
- global GetPlayerIdByName_func
- res := DllCall(GetPlayerIdByName_func,Str,name)
- return res
- }
- DecimalToHex(Var){
- ; Convert a decimal integer to hexadecimal:
- SetFormat, IntegerFast, hex
- Dec2Hex += Var ; Sets Dec2Hex (which previously contained 11) to be 0xb.
- Dec2Hex .= "" ; Necessary due to the "fast" mode.
- SetFormat, IntegerFast, d
- StringTrimLeft, Dec2Hex, Dec2Hex, 2 ; removes 0x from the string
- StringUpper, Dec2Hex, Dec2Hex ; makes it all caps
- sDec2Hex .= Dec2Hex
- return sDec2Hex
- }
- RelToAbs(root, dir, s = "\") {
- pr := SubStr(root, 1, len := InStr(root, s, "", InStr(root, s . s) + 2) - 1)
- , root := SubStr(root, len + 1), sk := 0
- If InStr(root, s, "", 0) = StrLen(root)
- StringTrimRight, root, root, 1
- If InStr(dir, s, "", 0) = StrLen(dir)
- StringTrimRight, dir, dir, 1
- Loop, Parse, dir, %s%
- {
- If A_LoopField = ..
- StringLeft, root, root, InStr(root, s, "", 0) - 1
- Else If A_LoopField =
- root =
- Else If A_LoopField != .
- Continue
- StringReplace, dir, dir, %A_LoopField%%s%
- }
- Return, pr . root . s . dir
- }
- Login:
- #SingleInstance
- SetBatchLines, -1
- Menu, Tray, NoStandard
- Menu, Tray, Add, Exit, GuiClose
- Menu, Tray, Default, Exit
- InputBox, uName, Login, Gib den Benutzernamen ein!
- If uName = Ordnungsamt LYD
- InputBox, uPass, Login, Gib das Passwort ein!, HIDE
- Else
- {
- Msgbox, 48, Login, Falsches Passwort` gib das richtige Passwort ein !
- Goto, GuiClose
- }
- If uPass = 30112015
- Goto, EnterScript
- Else
- Msgbox, 48, Login,Der Keybinder wird beendet!
- GuiClose:
- ExitApp
- Return
- EnterScript:
- Msgbox, 48, Login, Erfolgreich Angemeldet.
- return
- t::
- Suspend On
- SendInput t
- Hotkey, Enter, On
- Hotkey, Escape, On
- Hotkey, t, Off
- return
- NumpadEnter::
- Enter::
- Suspend Permit
- Suspend Off
- Hotkey, t, On
- Hotkey, Enter, Off
- Hotkey, Escape, Off
- return
- Escape::
- Suspend Permit
- Suspend Off
- SendInput {Escape}
- Hotkey, t, On
- Hotkey, Enter, Off
- Hotkey, Escape, Off
- return
- F12::
- Suspend
- SendInput, % "t/me " (A_IsSuspended ? "deaktiviert" : "aktiviert") " seinen Oamt-Keybinder. {enter}"
- if(!%A_IsSuspended%)
- Hotkey, t, On
- return
- +1::
- SendChat("/Parkscheinkontrolle")
- return
- +2::
- SendChat("/Parkstrafe")
- return
- +3::
- SendChat("/Strafzettel")
- return
- +4::
- SendChat("/Abnehmen")
- SendChat("Guten Tag, dies ist der Beschwerdebeantworter des Ordnungsamtes")
- SendChat("Wenn Sie eine Beschwerde haben, melden Sie sich")
- SendChat("bitte im Forum bei einem Ausbilder oder Leader")
- SendChat("oder warten Sie bei uns im Warteraum (im TS) bis")
- SendChat("sich eine zuständige Person bei ihnen meldet.")
- SendChat("Danke für ihre Aufmerksamkeit.")
- SendChat("/auflegen")
- return
- +5::
- Suspend
- SendInput, % "t/"(A_IsSuspended ? "blitzeraufstellen 85 300" : "blitzerabbauen") " {enter}"
- if(!%A_IsSuspended%)
- Hotkey, t, On
- return
- +6::
- Sendchat("/oparken")
- Sendchat("/Fparken")
- return
- +7::
- SendChat("/Kofferraumansehen")
- SendChat("/me schaut sich den Kofferraum an")
- return
- +8::
- SendChat("Aus Sicherheitsgründen werde ich Sie nun Festnehmen!")
- SendInput t{/}festnehmen{space}
- Return
- +9::
- GetPlayerName(pName)
- SendChat("Ich spreche Ihnen hiermit nach §12 BR Abs.1 einen 30 minütigen Platzverweis aus")
- SendChat("Sollten Sie diesem nicht Nachkommen, sind wir Gezwungen Ihnen Wanteds zu geben")
- SendChat("Sollten Sie dann immer noch nicht Weggehen, Wird Die Polizei Gerufen")
- SendChat("oder wir werden Sie Festnehmen und ggf. Ihr Auto wenn vorhanden kostenpflichtig")
- SendChat("Entfernen. Sollten Sie uns jetzt Abschießen wollen, verstoßen Sie gegen")
- SendChat(" $27 SR Abs.2 (SDM auf Beamte)")
- SendChat("Danke für Ihre Aufmerksamkeit!")
- return
- +0::
- SendChat("/staatrepair")
- return
- !1::
- SendChat("Ich werde Sie nun auf Waffen und Drogen Durchsuchen")
- SendInput t{/}durchsuchen{space}
- Return
- !2::
- SendChat("Ich kontrolliere Sie nun auf Drogen und Alkoholkonsum!")
- SendInput t{/}Promille{space}
- return
- !3::
- SendChat("Ihre Waffen/Drogen werden Ihnen aus Sicherheitsgründen abgenommen!")
- SendInput t{/}entnehmen{space}
- return
- !4::
- SendInput t{/}fpunkte{space}
- return
- !5::
- SendChat("/Abnehmen")
- SendChat("Guten Tag, San Andreas Ordnungsamt.")
- SendChat("Wie kann ich Ihnen Helfen?")
- return
- !6::
- GetPlayerName(pName)
- SendChat("Hallo San Andreas Ordnungsamt")
- Sleep 100
- SendChat("" pName " mein Name.")
- Sleep 100
- SendChat("Sie haben ihr Fahrzeug im Halteverbot stehen.")
- Sleep 100
- SendChat("Ich gebe ihnen 2 Minuten Zeit es wegzufahren.")
- Sleep 100
- SendChat("Andernfalls sind wir gezwunden, dass Fahrzeug")
- Sleep 100
- SendChat("Kostenpflichtig abzuschleppen.")
- Sleep 100
- SendChat("Dies Kostet Sie 35000$")
- return
- !7::
- SendChat("/motor")
- SendChat("/licht")
- SendChat("/flock")
- return
- !9::
- SendChat("/me macht den Warnblinker an/aus")
- SendChat("/warnblinker")
- return
- !0::
- SendChat("/fc Allgemeiner Fahrzeug Respawn in 20 Sekunden!")
- SendChat("/fc Noch 20 Sekunden!")
- Sleep 5000
- SendChat("/fc Noch 15 Sekunden!")
- Sleep 5000
- SendChat("/fc Nurnoch 10 Sekunden bis zum respawn schnell in die Fahrzeuge!")
- Sleep 5000
- SendChat("/fc Noch 5 Sekunden!")
- Sleep 1000
- SendChat("/fc Noch 4 Sekunden!")
- Sleep 1000
- SendChat("/fc Noch 3 Sekunden!")
- Sleep 1000
- SendChat("/fc Noch 2 Sekunden!")
- Sleep 1000
- SendChat("/fc Noch 1 Sekunde!")
- Sleep 1000
- SendChat("/respawncars")
- SendChat("/fc Respawn!")
- SendChat("/fc Die O-Amt Fahrzeuge wurden erfolgreich Respawnt!")
- return
- !ü::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 1
- return
- }
- SendChat("/pickwaffe")
- return
- :?:/pw::
- SendChat("/pickwaffe")
- return
- ^ & 1::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 1
- return
- }
- SendChat("/m >>>San Andreas Ordnungsamt!<<<")
- SendChat("/m >>>Räumen Sie umgehend die Straße!<<<")
- return
- ^ & 2::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 2
- return
- }
- SendChat("/m >>>San Andreas Ordnungsamt!<<<")
- SendChat("/m >>>Allgemeine Verkehrskontrolle!<<<")
- SendChat("/m >>>Fahren Sie sofort rechts ran!<<<")
- return
- ^ & 3::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 3
- return
- }
- SendChat("/m >>>Dies ist die letzte Aufforderung!<<<")
- SendChat("/m >>>Fahren Sie sofort rechts ran!<<<")
- return
- ^ & 4::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 4
- return
- }
- GetPlayerName(pName)
- SendChat("Guten Tag, das ist eine allgemeine Verkehrs Kontrolle.")
- SendChat("" pName " ist mein Name.")
- return
- ^ & 5::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 5
- return
- }
- SendChat("Bitte stellen Sie den Motor ab und steigen Sie aus.")
- return
- ^ & 6::
- GetPlayerName(pName)
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 6
- return
- }
- SendChat("Bitte zeigen Sie mir ihren Personalausweis mit /pass " pName "")
- SendChat("Nun zeigen Sie mir ihre Scheine mit /scheine " pName "")
- SendChat("Und zum Schluss möchte ich ihren Fahrzeugschein sehen, das machen Sie mit /fahrzeugschein " pName "")
- return
- ^ & 7::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 7
- return
- }
- SendChat("Vielen Dank!")
- SendChat("Nun werde ich Sie auf Drogen und Alkohol untersuchen!")
- return
- ^ & 8::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 8
- return
- }
- SendChat("Zum Schluss möchte ich einen Blick in ihren Kofferraum werfen.")
- SendChat("Diesen Öffnen Sie mit /kofferraum wahrend Sie in ihrem Fahrzeug sitzen.")
- return
- ^ & 9::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput 9
- return
- }
- SendChat("Vielen Dank für ihre Kooperation.")
- SendChat("Schönen Tag noch und gute Weiterfahrt.")
- return
- ^ & 0::
- SendChat("/dienst")
- SendChat("/oamt")
- return
- :?:/test::
- suspend permit
- SendChat("Test")
- return
- +::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput x
- return
- }
- ShowDialog(DIALOG_STYLE_LIST, "Punkteliste und Ordnungsgelder", "{FFAA00}######################################################`nVerkehrsstrafpunkte i.V.m. möglichen Ordnungsgeldern:`n`n{00FF00}Behinderung des Verkehrsflusses: 1 Strafpunkte oder 2.000$`nAbsichtliches Zerstören von Verkehrsanlagen: 2 Strafpunkte oder 7.500$`nFahren ohne Licht: 3 Strafpunkte oder 3.000$`nParken im Halteverbot: 2 Strafpunkte oder 3.000$`nFahren abseits der Straße: 3 Strafpunkte oder 7.500$`nFahren ohne Helm: 3 Strafpunkte (Gilt nur für Motorrad!)`nMissachtung der Vorfahrtsregeln: 3 Strafpunkte oder 5.000$`nBehinderung von Einsatzfahrzeugen: 4 Strafpunkte`nVerursachen eines Unfalles: 4 Strafpunkte oder 10.000$`nFahren auf falscher Straßenseite, wenn kein Hindernis erkennbar ist: 6 Strafpunkte`nFahren über eine rote Ampel: 7 Strafpunkte`nFahren unter Alkohol-/Drogeneinfluss: 10 Strafpunkte`nAbsichtliches Anfahren von Personen: 10 Strafpunkte`nZeigen von Waffen in Waffenverbotszone - Entnehmen der Waffen`nSchießen in Waffenverbotszonen: Waffenscheinsperre`n`nTiefflug: Scheinentzug`nAusnahme: [San News] [Rettungsdienst] [Ordnungsamt] [Polizei/FBI/Army] (Nur im Einsatz)`n`nRotorn: Scheinentzug ggf. A-Prison`nRammen anderer Luftfahrzeuge: Scheinentzug Ausnahme: [Polizisten] [Army] [FBI](Nur im Einsatz)`nFahren von nicht angemeldetem Fahrzeug: 6 Strafpunkte und 40000$ Strafe`nParken von nicht Angemeldetem Fahrzeug: 5000$ Strafe und direkte Anmeldung!`n{FFAA00}######################################################`n{00FF00}Ordnungsgelder:`n`nAbschleppmaßnahme: 35000$`nFahren ohne Gültige Zulassung: 15000$`nFahren ohne gültigem TÜV: 25000$`nBeleidigung: 5000$`nBenutzen von Nitro(gilt nur in Los Santos:2500$ oder 2 Wanteds für StVO`nErregung Öffentlichen Ärgernisses: 10000$`nÖffentliches Urinieren: 5000$`n{FFAA00}######################################################", "Schließen")
- return
- #::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput l
- return
- }
- ShowDialog(Dialog_Style_List, "Tastenkombinationen", "{FFBB00}############################`nF12 = Keybinder An/Ausschalten`n{00FF00}############################`n^+1 = Räumen Sie umgehend die Straße`n^+2 = Allgemeine Verkehrskontrolle`n^+3 = Letzt Aufforderung`n^+4 = Guten Tag, dies ist eine Verkehrskontrolle`n^+5 = Motor ausstellen und aussteigen`n^+6 = Auffordern alle Scheine zu zeigen`n^+7 = Vielen dank ich werde Sie nun durchsuchen`n^+8 = Bitte zeigen Sie mir ihren Kofferaum`n^+9 = Vielen dank für Ihre Kooperation`n^+0 = In den Dienst gehen`n{F7FE2E}############################`nShift+1 = Fahrzeughalter ermitteln/Parkschein kontrollieren`nShift+2 = Bußgeld geben wegen Parken ohne Parkschein`nShift+3 = Bußgeld geben wegen Parken im Halteverbot`nShift+4 = Beschwerdebeantworter (sollte jemand euch anrufen und eine Beschwerde haben)`nShift+5 = Blitzer Aufstellen/Abbauen`nShitf+6 = Operken/Fparken`nShift+7 = Kofferraum durchsuchen`nShift+8 = Vorwarnen das ich Handschellen anlegen werde und Festnehmen`nShift+9 = Aussprechen eines Platzverweises auf öffentlichem Gelände`nShift+0 = Staats-Raparatur`n{FF0000}############################`nALT+1 = Person durchsuchen`nALT+2 = Person auf Alkohol und Drogen testen`nALT+3 = Waffen oder Drogen entnehmen`nALT+4 = Strafpunkte auf Scheine geben`nALT+5 = Guten Tag San Andreas Ordnungsamt`nALT+6 = Text für stehen im Halteverbot`nALT+7 = Motor an/aus Carlock auf/zu Licht an/aus`nALT+8 = Nur Carlock`nALT+9 = Warblinker an/aus`nALT+0 = Car Respawn (Nur als Ausbilder oder Leader Nutzbar)`nALT+Ü = Waffen Aufheben`n{0000FF}############################`nSchein ID's:`nAutoschein: 1`nBootsschein: 2`nFlugschein: 3`nMotorradschein: 4`nLKWschein: 5`nWaffenschein: 6 ", "Schließen")
- return
- ä::
- If(IsChatOpen() or IsDialogOpen()){
- SendInput x
- return
- }
- ShowDialog(DIALOG_STYLE_LIST, "Sonstiges", "{00FF00}######################################################`nNeulingen unter Level 2 Bitte keine Punkte geben nur Wanteds.`nPersonen Mit Faggios, Fahrrädern oder Sonstigen Fahrzeugen bei denen man keinen Schein braucht Wanteds für StVO geben.`nPersonen die Permanent gegen die StVO Vertoßen bitte mit Beweisen den Schein entziehen.`nDauerhupen ohne jeglichem Grund ist verboten und wird mit StVO Wanteds Bestraft!`n{F7FE2E}######################################################`nCommands die nicht in der /Help liste Stehen:`n/vrk = Text für die Verkehrskontrolle (nur im Stratum verwenden)`n/HSirene = Die Sirene eines RTW/Polizeiwagens an/aus machen", "Schließen")
- return
- Autobefehle:
- if(IsPlayerInRangeOfPoint(2288.4749, 2444.5205, 3.0815, 3) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- ShowGameText("~r~Fahrzeug ~g~Repariert", 2500, 3)
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(1554.6696, -1612.0137, 13.1293, 3) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(2047.3696,-1319.7498,23.9810,4.0) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(1240.7091,-2028.5955,59.6859,4.0) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(833.1295,-1240.3947,15.1100,4.0) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(1248.3625,-1833.8903,13.3930,4.0) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- else if(IsPlayerInRangeOfPoint(621.2955,-584.5904,17.2330,4.0) && IsPlayerInAnyVehicle())
- {
- SendChat("/staatrepair")
- SendInput, t/me hat sein Fahrzeug erfolgreich repariert{!}{enter}
- Sleep, 3000
- }
- if ( A_IsSuspended )
- return
- Getchatline(0, Chatline0)
- if(instr(Chatline0, "Sie stehen an einer Zollstation"))
- {
- sendchat("/Zollamt")
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement