@open.mp/node
Version:
open.mp nodejs package. contains constants, type definitions, and initializers
1 lines • 118 kB
JavaScript
"use strict";const e=__internal_omp;function d(h){return e.voidSize===8?BigInt(h):h}const l=__omp;class g{entries=new Map;entityPtrs=new Map;at(t){const r=this.entityPtrs.get(t);if(r)return this.entries.get(r)}get(t){return this.entries.get(t)}all(){return[...Array.from(this.entries.values())]}forEach(t){this.entries.forEach((r,i)=>t(r,i))}add_INTERNAL_UNSAFE(t){t&&(this.entityPtrs.set(t.getID(),t.getPtr()),this.entries.set(t.getPtr(),t))}remove_INTERNAL_UNSAFE(t){t&&(this.entityPtrs.delete(t.getID()),this.entries.delete(t.getPtr()))}entries_INTERNAL_UNSAFE(){return this.entries}ids_INTERNAL_UNSAFE(){return this.entityPtrs}}class T{player=null;entries=new Map;entityPtrs=new Map;constructor(t){this.player=t}at(t){const r=this.entityPtrs.get(t);if(r!==void 0)return this.entries.get(r)}get(t){return this.entries.get(t)}all(){return[...Array.from(this.entries.values())]}forEach(t){this.entries.forEach((r,i)=>t(r,i))}add_INTERNAL_UNSAFE(t){t&&(this.entityPtrs.set(t.getID(),t.getPtr()),this.entries.set(t.getPtr(),t))}remove_INTERNAL_UNSAFE(t){t&&(this.entityPtrs.delete(t.getID()),this.entries.delete(t.getPtr()))}entries_INTERNAL_UNSAFE(){return this.entries}ids_INTERNAL_UNSAFE(){return this.entityPtrs}}class _{entries=new Map;at(t){return this.entries.get(t)}entries_INTERNAL_UNSAFE(){return this.entries}}const z=4,R=1e3,j=2e3,J=320,m=2e3,K=1e3,Y=13,$=212,q=46,Q=11,tt=255,et=3,rt=24,it=1813,at=999,nt=65535,ot=65535,st=65535,lt=65535,ht=200,ct=10,pt=16,S=1024,wt=65535,U=4096,F=2048,yt=256,ut=194,ft=0,dt=16,Pt=14,Et=1024,gt=2048,vt=256,bt=65535,W=1e3,B=128,St=12,Tt=32,_t=255,mt=-1,At=32768,Dt=-1,Ct=-1,It=-1,Vt=-1,Z=1024,Ot=200,xt=50,Nt=700,Lt=255,Gt=-1,kt=2e4,Mt=-2e4,Rt=800,jt=3,Ut=16,Ft=20001,Wt=3e4,Bt=-3e4,Zt=-1e3;let b=class{ptr=null;id=null;constructor(t){const r=e.Player.FromID(t);if(r.ret===0)throw new Error("Failed to retrieve player");this.ptr=d(r.ret),this.id=t}getPtr(){return this.ptr}getID(){return this.id}setSpawnInfo(t,r,i,a,n,o,s,c,w,y,u,P){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetSpawnInfo(this.ptr,t,r,i,a,n,o,s,c,w,y,u,P).ret}getSpawnInfo(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSpawnInfo(this.ptr)}getNetworkStats(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetNetworkStats(this.ptr)}netStatsBytesReceived(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsBytesReceived(this.ptr).ret}netStatsBytesSent(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsBytesSent(this.ptr).ret}netStatsConnectionStatus(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsConnectionStatus(this.ptr).ret}netStatsGetConnectedTime(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsGetConnectedTime(this.ptr).ret}netStatsGetIpPort(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsGetIpPort(this.ptr)}netStatsMessagesReceived(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsMessagesReceived(this.ptr).ret}netStatsMessagesRecvPerSecond(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsMessagesRecvPerSecond(this.ptr).ret}netStatsMessagesSent(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsMessagesSent(this.ptr).ret}netStatsPacketLossPercent(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.NetStatsPacketLossPercent(this.ptr).ret}getCustomSkin(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCustomSkin(this.ptr).ret}getDialog(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetDialog(this.ptr).ret}getDialogData(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetDialogData(this.ptr)}getMenu(){if(!this.ptr)throw new Error("Player instance is not valid");const t=e.Player.GetMenu(this.ptr);return l.menus.at(t.ret)}getSurfingPlayerObject(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSurfingPlayerObject(this.ptr).ret}getCameraTargetPlayerObject(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraTargetPlayerObject(this.ptr).ret}sendClientMessage(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SendClientMessage(this.ptr,t,r).ret}setCameraPos(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetCameraPos(this.ptr,t,r,i).ret}setDrunkLevel(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetDrunkLevel(this.ptr,t).ret}setInterior(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetInterior(this.ptr,t).ret}setWantedLevel(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetWantedLevel(this.ptr,t).ret}setWeather(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetWeather(this.ptr,t).ret}getWeather(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWeather(this.ptr).ret}setSkin(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetSkin(this.ptr,t).ret}setShopName(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetShopName(this.ptr,t).ret}giveMoney(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GiveMoney(this.ptr,t).ret}setCameraLookAt(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetCameraLookAt(this.ptr,t,r,i,a).ret}setCameraBehind(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetCameraBehind(this.ptr).ret}createExplosion(t,r,i,a,n){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.CreateExplosion(this.ptr,t,r,i,a,n).ret}playAudioStream(t,r,i,a,n,o){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.PlayAudioStream(this.ptr,t,r,i,a,n,o).ret}stopAudioStream(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.StopAudioStream(this.ptr).ret}toggleWidescreen(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ToggleWidescreen(this.ptr,t).ret}isWidescreenToggled(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsWidescreenToggled(this.ptr).ret}setHealth(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetHealth(this.ptr,t).ret}getHealth(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetHealth(this.ptr).ret}setArmor(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetArmor(this.ptr,t).ret}getArmor(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetArmor(this.ptr).ret}setTeam(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetTeam(this.ptr,t).ret}getTeam(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetTeam(this.ptr).ret}setScore(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetScore(this.ptr,t).ret}getScore(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetScore(this.ptr).ret}getSkin(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSkin(this.ptr).ret}setColor(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetColor(this.ptr,t).ret}getColor(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetColor(this.ptr).ret}getDefaultColor(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetDefaultColor(this.ptr).ret}getDrunkLevel(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetDrunkLevel(this.ptr).ret}giveWeapon(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GiveWeapon(this.ptr,t,r).ret}removeWeapon(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.RemoveWeapon(this.ptr,t).ret}getMoney(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetMoney(this.ptr).ret}resetMoney(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ResetMoney(this.ptr).ret}setName(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetName(this.ptr,t).ret}getName(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetName(this.ptr)}getState(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetState(this.ptr).ret}getPing(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetPing(this.ptr).ret}getWeapon(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWeapon(this.ptr).ret}setTime(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetTime(this.ptr,t,r).ret}getTime(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetTime(this.ptr)}toggleClock(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ToggleClock(this.ptr,t).ret}hasClock(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.HasClock(this.ptr).ret}forceClassSelection(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ForceClassSelection(this.ptr).ret}getWantedLevel(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWantedLevel(this.ptr).ret}setFightingStyle(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetFightingStyle(this.ptr,t).ret}getFightingStyle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetFightingStyle(this.ptr).ret}setVelocity(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetVelocity(this.ptr,t,r,i).ret}getVelocity(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetVelocity(this.ptr)}getCameraPos(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraPos(this.ptr)}getDistanceFromPoint(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetDistanceFromPoint(this.ptr,t,r,i).ret}getInterior(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetInterior(this.ptr).ret}setPos(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetPos(this.ptr,t,r,i).ret}getPos(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetPos(this.ptr)}getVirtualWorld(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetVirtualWorld(this.ptr).ret}isNPC(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsNPC(this.ptr).ret}isStreamedIn(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsStreamedIn(this.ptr,t.getPtr()).ret}playGameSound(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.PlayGameSound(this.ptr,t,r,i,a).ret}spectatePlayer(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SpectatePlayer(this.ptr,t.getPtr(),r).ret}spectateVehicle(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SpectateVehicle(this.ptr,t.getPtr(),r).ret}setVirtualWorld(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetVirtualWorld(this.ptr,t).ret}setWorldBounds(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetWorldBounds(this.ptr,t,r,i,a).ret}clearWorldBounds(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ClearWorldBounds(this.ptr).ret}getWorldBounds(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWorldBounds(this.ptr)}clearAnimations(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ClearAnimations(this.ptr,t).ret}getLastShotVectors(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetLastShotVectors(this.ptr)}getCameraTargetPlayer(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraTargetPlayer(this.ptr).ret}getCameraTargetActor(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraTargetActor(this.ptr).ret}getCameraTargetObject(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraTargetObject(this.ptr).ret}getCameraTargetVehicle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraTargetVehicle(this.ptr).ret}putInVehicle(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.PutInVehicle(this.ptr,t.getPtr(),r).ret}removeBuilding(t,r,i,a,n){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.RemoveBuilding(this.ptr,t,r,i,a,n).ret}getBuildingsRemoved(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetBuildingsRemoved(this.ptr).ret}removeFromVehicle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.RemoveFromVehicle(this.ptr,!1).ret}removeMapIcon(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.RemoveMapIcon(this.ptr,t).ret}setMapIcon(t,r,i,a,n,o,s){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetMapIcon(this.ptr,t,r,i,a,n,o,s).ret}resetWeapons(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ResetWeapons(this.ptr).ret}setAmmo(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetAmmo(this.ptr,t,r).ret}setArmedWeapon(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetArmedWeapon(this.ptr,t).ret}setChatBubble(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetChatBubble(this.ptr,t,r,i,a).ret}setPosFindZ(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetPosFindZ(this.ptr,t,r,i).ret}setSkillLevel(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetSkillLevel(this.ptr,t,r).ret}setSpecialAction(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetSpecialAction(this.ptr,t).ret}showNameTagForPlayer(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ShowNameTagForPlayer(this.ptr,t.getPtr(),r).ret}toggleControllable(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ToggleControllable(this.ptr,t).ret}toggleSpectating(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ToggleSpectating(this.ptr,t).ret}applyAnimation(t,r,i,a,n,o,s,c,w){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ApplyAnimation(this.ptr,t,r,i,a,n,o,s,c,w).ret}static getAnimationName(t){return e.Player.GetAnimationName(t)}editAttachedObject(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.EditAttachedObject(this.ptr,t).ret}enableCameraTarget(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.EnableCameraTarget(this.ptr,t).ret}enableStuntBonus(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.EnableStuntBonus(this.ptr,t).ret}getPlayerAmmo(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetPlayerAmmo(this.ptr).ret}getAnimationIndex(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetAnimationIndex(this.ptr).ret}getFacingAngle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetFacingAngle(this.ptr).ret}getIp(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetIp(this.ptr)}getSpecialAction(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSpecialAction(this.ptr).ret}getVehicleID(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetVehicleID(this.ptr).ret}getVehicleSeat(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetVehicleSeat(this.ptr).ret}getWeaponData(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWeaponData(this.ptr,t)}getWeaponState(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetWeaponState(this.ptr).ret}interpolateCameraPos(t,r,i,a,n,o,s,c){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.InterpolateCameraPos(this.ptr,t,r,i,a,n,o,s,c).ret}interpolateCameraLookAt(t,r,i,a,n,o,s,c){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.InterpolateCameraLookAt(this.ptr,t,r,i,a,n,o,s,c).ret}isPlayerAttachedObjectSlotUsed(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsPlayerAttachedObjectSlotUsed(this.ptr,t).ret}attachCameraToObject(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.AttachCameraToObject(this.ptr,t.getPtr()).ret}attachCameraToPlayerObject(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.AttachCameraToPlayerObject(this.ptr,t.getPtr()).ret}getCameraAspectRatio(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraAspectRatio(this.ptr).ret}getCameraFrontVector(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraFrontVector(this.ptr)}getCameraMode(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraMode(this.ptr).ret}getKeys(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetKeys(this.ptr)}getSurfingVehicle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSurfingVehicle(this.ptr).ret}getSurfingObject(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSurfingObject(this.ptr).ret}getTargetPlayer(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetTargetPlayer(this.ptr).ret}getTargetActor(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetTargetActor(this.ptr).ret}isInVehicle(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsInVehicle(this.ptr,t.getPtr()).ret}isInAnyVehicle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsInAnyVehicle(this.ptr).ret}isInRangeOfPoint(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsInRangeOfPoint(this.ptr,t,r,i,a).ret}playCrimeReport(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.PlayCrimeReport(this.ptr,t.getPtr(),r).ret}removeAttachedObject(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.RemoveAttachedObject(this.ptr,t).ret}setAttachedObject(t,r,i,a,n,o,s,c,w,y,u,P,f,E){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetAttachedObject(this.ptr,t,r,i,a,n,o,s,c,w,y,u,P,f,E).ret}getAttachedObject(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetAttachedObject(this.ptr,t)}setFacingAngle(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetFacingAngle(this.ptr,t).ret}setMarkerForPlayer(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetMarkerForPlayer(this.ptr,t.getPtr(),r).ret}getMarkerForPlayer(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetMarkerForPlayer(this.ptr,t.getPtr()).ret}allowTeleport(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.AllowTeleport(this.ptr,t).ret}isTeleportAllowed(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsTeleportAllowed(this.ptr).ret}disableRemoteVehicleCollisions(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.DisableRemoteVehicleCollisions(this.ptr,t).ret}getCameraZoom(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetCameraZoom(this.ptr).ret}selectTextDraw(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SelectTextDraw(this.ptr,t).ret}cancelSelectTextDraw(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.CancelSelectTextDraw(this.ptr).ret}sendClientCheck(t,r,i,a){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SendClientCheck(this.ptr,t,r,i,a).ret}spawn(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.Spawn(this.ptr).ret}gPCI(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GPCI(this.ptr)}isAdmin(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsAdmin(this.ptr).ret}kick(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.Kick(this.ptr).ret}showGameText(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ShowGameText(this.ptr,t,r,i).ret}hideGameText(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.HideGameText(this.ptr,t).ret}hasGameText(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.HasGameText(this.ptr,t).ret}getGameText(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetGameText(this.ptr,t)}ban(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.Ban(this.ptr).ret}banEx(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.BanEx(this.ptr,t).ret}sendDeathMessage(t,r,i){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SendDeathMessage(this.ptr,t.getPtr(),r.getPtr(),i).ret}sendMessageToPlayer(t,r){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SendMessageToPlayer(this.ptr,t.getPtr(),r).ret}getVersion(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetVersion(this.ptr)}getSkillLevel(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSkillLevel(this.ptr,t).ret}getZAim(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetZAim(this.ptr).ret}getSurfingOffsets(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSurfingOffsets(this.ptr)}getRotationQuat(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetRotationQuat(this.ptr)}getPlayerSpectateID(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetPlayerSpectateID(this.ptr).ret}getSpectateType(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSpectateType(this.ptr).ret}getRawIp(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetRawIp(this.ptr).ret}setGravity(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetGravity(this.ptr,t).ret}getGravity(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetGravity(this.ptr).ret}setAdmin(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.SetAdmin(this.ptr,t).ret}isSpawned(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsSpawned(this.ptr).ret}isControllable(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsControllable(this.ptr).ret}isCameraTargetEnabled(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsCameraTargetEnabled(this.ptr).ret}toggleGhostMode(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.ToggleGhostMode(this.ptr,t).ret}getGhostMode(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetGhostMode(this.ptr).ret}allowWeapons(t){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.AllowWeapons(this.ptr,t).ret}areWeaponsAllowed(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.AreWeaponsAllowed(this.ptr).ret}isPlayerUsingOfficialClient(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsPlayerUsingOfficialClient(this.ptr).ret}getAnimationFlags(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetAnimationFlags(this.ptr).ret}isInDriveByMode(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsInDriveByMode(this.ptr).ret}isCuffed(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsCuffed(this.ptr).ret}isInModShop(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.IsInModShop(this.ptr).ret}getSirenState(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetSirenState(this.ptr).ret}getLandingGearState(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetLandingGearState(this.ptr).ret}getHydraReactorAngle(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetHydraReactorAngle(this.ptr).ret}getTrainSpeed(){if(!this.ptr)throw new Error("Player instance is not valid");return e.Player.GetTrainSpeed(this.ptr).ret}},A=class{ptr=null;id=null;constructor(t,r,i,a,n,o,s,c,w){if(arguments.length<2){const u=e.Vehicle.FromID(t);if(u.ret===0)throw new Error("Failed to create vehicle");this.ptr=d(u.ret),this.id=t;return}const y=e.Vehicle.Create(t,r,i,a,n,o,s,c,w);if(y.ret===0)throw new Error("Failed to create vehicle");this.ptr=d(y.ret),y.hasOwnProperty("id")&&(this.id=y.id)}destroy(){if(!this.ptr)throw new Error("Vehicle instance is not valid");e.Vehicle.Destroy(this.ptr).ret&&(this.ptr=null,this.id=null)}getPtr(){return this.ptr}getID(){return this.id}static getMaxPassengerSeats(t){return e.Vehicle.GetMaxPassengerSeats(t).ret}isStreamedIn(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsStreamedIn(this.ptr,t.getPtr()).ret}getPos(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetPos(this.ptr)}setPos(t,r,i){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetPos(this.ptr,t,r,i).ret}getZAngle(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetZAngle(this.ptr).ret}getRotationQuat(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetRotationQuat(this.ptr)}getDistanceFromPoint(t,r,i){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetDistanceFromPoint(this.ptr,t,r,i).ret}setZAngle(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetZAngle(this.ptr,t).ret}setParamsForPlayer(t,r,i){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetParamsForPlayer(this.ptr,t.getPtr(),r,i).ret}static useManualEngineAndLights(){return e.Vehicle.UseManualEngineAndLights().ret}setParamsEx(t,r,i,a,n,o,s){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetParamsEx(this.ptr,t,r,i,a,n,o,s).ret}getParamsEx(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetParamsEx(this.ptr)}getParamsSirenState(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetParamsSirenState(this.ptr).ret}setParamsCarDoors(t,r,i,a){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetParamsCarDoors(this.ptr,t,r,i,a).ret}getParamsCarDoors(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetParamsCarDoors(this.ptr)}setParamsCarWindows(t,r,i,a){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetParamsCarWindows(this.ptr,t,r,i,a).ret}getParamsCarWindows(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetParamsCarWindows(this.ptr)}setToRespawn(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetToRespawn(this.ptr).ret}linkToInterior(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.LinkToInterior(this.ptr,t).ret}addComponent(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.AddComponent(this.ptr,t).ret}removeComponent(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.RemoveComponent(this.ptr,t).ret}changeColor(t,r){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.ChangeColor(this.ptr,t,r).ret}changePaintjob(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.ChangePaintjob(this.ptr,t).ret}setHealth(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetHealth(this.ptr,t).ret}getHealth(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetHealth(this.ptr).ret}attachTrailer(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.AttachTrailer(this.ptr,t.getPtr()).ret}detachTrailer(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.DetachTrailer(this.ptr).ret}isTrailerAttached(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsTrailerAttached(this.ptr).ret}getTrailer(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetTrailer(this.ptr).ret}setNumberPlate(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetNumberPlate(this.ptr,t).ret}getModel(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetModel(this.ptr).ret}getComponentInSlot(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetComponentInSlot(this.ptr,t).ret}static getComponentType(t){return e.Vehicle.GetComponentType(t).ret}static canHaveComponent(t,r){return e.Vehicle.CanHaveComponent(t,r).ret}static getRandomColorPair(t){return e.Vehicle.GetRandomColorPair(t)}static colorIndexToColor(t,r){return e.Vehicle.ColorIndexToColor(t,r).ret}repair(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.Repair(this.ptr).ret}getVelocity(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetVelocity(this.ptr)}setVelocity(t,r,i){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetVelocity(this.ptr,t,r,i).ret}setAngularVelocity(t,r,i){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetAngularVelocity(this.ptr,t,r,i).ret}getDamageStatus(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetDamageStatus(this.ptr)}updateDamageStatus(t,r,i,a){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.UpdateDamageStatus(this.ptr,t,r,i,a).ret}static getModelInfo(t,r){return e.Vehicle.GetModelInfo(t,r)}setVirtualWorld(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetVirtualWorld(this.ptr,t).ret}getVirtualWorld(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetVirtualWorld(this.ptr).ret}getLandingGearState(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetLandingGearState(this.ptr).ret}isValid(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsValid(this.ptr).ret}addStatic(t,r,i,a,n,o,s){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.AddStatic(this.ptr,t,r,i,a,n,o,s)}addStaticEx(t,r,i,a,n,o,s,c,w){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.AddStaticEx(this.ptr,t,r,i,a,n,o,s,c,w)}static enableFriendlyFire(){return e.Vehicle.EnableFriendlyFire().ret}getSpawnInfo(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetSpawnInfo(this.ptr)}setSpawnInfo(t,r,i,a,n,o,s,c,w){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetSpawnInfo(this.ptr,t,r,i,a,n,o,s,c,w).ret}static getModelCount(t){return e.Vehicle.GetModelCount(t).ret}static getModelsUsed(){return e.Vehicle.GetModelsUsed().ret}getPaintjob(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetPaintjob(this.ptr).ret}getColor(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetColor(this.ptr)}getInterior(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetInterior(this.ptr).ret}getNumberPlate(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetNumberPlate(this.ptr)}setRespawnDelay(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetRespawnDelay(this.ptr,t).ret}getRespawnDelay(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetRespawnDelay(this.ptr).ret}getCab(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetCab(this.ptr).ret}getTower(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetTower(this.ptr).ret}getOccupiedTick(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetOccupiedTick(this.ptr).ret}getRespawnTick(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetRespawnTick(this.ptr).ret}hasBeenOccupied(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.HasBeenOccupied(this.ptr).ret}isOccupied(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsOccupied(this.ptr).ret}isDead(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsDead(this.ptr).ret}setParamsSirenState(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.SetParamsSirenState(this.ptr,t).ret}toggleSirenEnabled(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.ToggleSirenEnabled(this.ptr,t).ret}isSirenEnabled(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.IsSirenEnabled(this.ptr).ret}getLastDriver(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetLastDriver(this.ptr).ret}getDriver(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetDriver(this.ptr).ret}getSirenState(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetSirenState(this.ptr).ret}getHydraReactorAngle(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetHydraReactorAngle(this.ptr).ret}getTrainSpeed(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetTrainSpeed(this.ptr).ret}getMatrix(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetMatrix(this.ptr)}getOccupant(t){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.GetOccupant(this.ptr,t).ret}countOccupants(){if(!this.ptr)throw new Error("Vehicle instance is not valid");return e.Vehicle.CountOccupants(this.ptr).ret}},D=class{ptr=null;id=null;constructor(t,r,i,a,n){if(arguments.length<2){const s=e.Actor.FromID(t);if(s.ret===0)throw new Error("Failed to create actor");this.ptr=d(s.ret),this.id=t;return}const o=e.Actor.Create(t,r,i,a,n);if(o.ret===0)throw new Error("Failed to create actor");this.ptr=d(o.ret),o.hasOwnProperty("id")&&(this.id=o.id)}destroy(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.Destroy(this.ptr).ret?(this.ptr=null,this.id=null,!0):!1}getPtr(){return this.ptr}getID(){return this.id}isStreamedInFor(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.IsStreamedInFor(this.ptr,t.getPtr()).ret}setVirtualWorld(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetVirtualWorld(this.ptr,t).ret}getVirtualWorld(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetVirtualWorld(this.ptr).ret}applyAnimation(t,r,i,a,n,o,s,c){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.ApplyAnimation(this.ptr,t,r,i,a,n,o,s,c).ret}clearAnimations(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.ClearAnimations(this.ptr).ret}setPos(t,r,i){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetPos(this.ptr,t,r,i).ret}getPos(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetPos(this.ptr)}setFacingAngle(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetFacingAngle(this.ptr,t).ret}getFacingAngle(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetFacingAngle(this.ptr).ret}setHealth(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetHealth(this.ptr,t).ret}getHealth(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetHealth(this.ptr).ret}setInvulnerable(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetInvulnerable(this.ptr,t).ret}isInvulnerable(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.IsInvulnerable(this.ptr).ret}isValid(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.IsValid(this.ptr).ret}setSkin(t){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.SetSkin(this.ptr,t).ret}getSkin(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetSkin(this.ptr).ret}getAnimation(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetAnimation(this.ptr)}getSpawnInfo(){if(!this.ptr)throw new Error("Actor instance is not valid");return e.Actor.GetSpawnInfo(this.ptr)}},Xt=class{static sendClientMessage(t,r){return e.All.SendClientMessage(t,r).ret}static createExplosion(t,r,i,a,n){return e.All.CreateExplosion(t,r,i,a,n).ret}static sendDeathMessage(t,r,i){return e.All.SendDeathMessage(t.getPtr(),r.getPtr(),i).ret}static enableStuntBonus(t){return e.All.EnableStuntBonus(t).ret}},Ht=class{static set(t,r,i,a,n){return e.Checkpoint.Set(t.getPtr(),r,i,a,n).ret}static disable(t){return e.Checkpoint.Disable(t.getPtr()).ret}static isPlayerIn(t){return e.Checkpoint.IsPlayerIn(t.getPtr()).ret}static isActive(t){return e.Checkpoint.IsActive(t.getPtr()).ret}static get(t){return e.Checkpoint.Get(t.getPtr())}};class zt{ptr=null;id=null;constructor(t,r,i,a,n,o,s,c,w,y,u,P){if(arguments.length<2){const E=e.Class.FromID(t);if(E.ret===0)throw new Error("Failed to create class");this.ptr=d(E.ret),this.id=t;return}const f=e.Class.Add(t,r,i,a,n,o,s,c,w,y,u,P);if(f.ret===0)throw new Error("Failed to create class");this.ptr=d(f.ret),f.hasOwnProperty("id")&&(this.id=f.id)}destroy(){if(!this.ptr)throw new Error("Class instance is not valid");if(e.Class.Destroy(this.ptr).ret){this.ptr=null,this.id=null;return}else return}getPtr(){return this.ptr}getID(){return this.id}static count(){return e.Class.Count().ret}getData(){if(!this.ptr)throw new Error("Class instance is not valid");return e.Class.GetData(this.ptr)}edit(t,r,i,a,n,o,s,c,w,y,u,P){if(!this.ptr)throw new Error("Class instance is not valid");return e.Class.Edit(this.ptr,t,r,i,a,n,o,s,c,w,y,u,P).ret}}class Jt{static getAsBool(t){return e.Config.GetAsBool(t).ret}static getAsInt(t){return e.Config.GetAsInt(t).ret}static getAsFloat(t){return e.Config.GetAsFloat(t).ret}static getAsString(t){return e.Config.GetAsString(t)}}let Kt=class{static tickCount(){return e.Core.TickCount().ret}static maxPlayers(){return e.Core.MaxPlayers().ret}static log(t){return e.Core.Log(t).ret}static isAdminTeleportAllowed(){return e.Core.IsAdminTeleportAllowed().ret}static allowAdminTeleport(t){return e.Core.AllowAdminTeleport(t).ret}static areAllAnimationsEnabled(){return e.Core.AreAllAnimationsEnabled().ret}static enableAllAnimations(t){return e.Core.EnableAllAnimations(t).ret}static isAnimationLibraryValid(t){return e.Core.IsAnimationLibraryValid(t).ret}static areInteriorWeaponsAllowed(){return e.Core.AreInteriorWeaponsAllowed().ret}static allowInteriorWeapons(t){return e.Core.AllowInteriorWeapons(t).ret}static blockIpAddress(t,r){return e.Core.BlockIpAddress(t,r).ret}static unBlockIpAddress(t){return e.Core.UnBlockIpAddress(t).ret}static disableEntryExitMarkers(){return e.Core.DisableEntryExitMarkers().ret}static disableNameTagsLOS(){return e.Core.DisableNameTagsLOS().ret}static enableZoneNames(t){return e.Core.EnableZoneNames(t).ret}static showGameTextForAll(t,r,i){return e.Core.ShowGameTextForAll(t,r,i).ret}static hideGameTextForAll(t){return e.Core.HideGameTextForAll(t).ret}static networkStats(){return e.Core.NetworkStats()}static serverTickRate(){return e.Core.ServerTickRate().ret}static setChatRadius(t){return e.Core.SetChatRadius(t).ret}static setMarkerRadius(t){return e.Core.SetMarkerRadius(t).ret}static sendRconCommand(t){return e.Core.SendRconCommand(t).ret}static setDeathDropAmount(t){return e.Core.SetDeathDropAmount(t).ret}static gameMode(t){return e.Core.GameMode(t).ret}static setGravity(t){return e.Core.SetGravity(t).ret}static getGravity(){return e.Core.GetGravity().ret}static setNameTagsDrawDistance(t){return e.Core.SetNameTagsDrawDistance(t).ret}static setWeather(t){return e.Core.SetWeather(t).ret}static setWorldTime(t){return e.Core.SetWorldTime(t).ret}static showNameTags(t){return e.Core.ShowNameTags(t).ret}static showPlayerMarkers(t){return e.Core.ShowPlayerMarkers(t).ret}static usePedAnims(){return e.Core.UsePedAnims().ret}static getWeather(){return e.Core.GetWeather().ret}static getWorldTime(){return e.Core.GetWorldTime().ret}static toggleChatTextReplacement(t){return e.Core.ToggleChatTextReplacement(t).ret}static isChatTextReplacementToggled(){return e.Core.IsChatTextReplacementToggled().ret}static isNickNameValid(t){return e.Core.IsNickNameValid(t).ret}static allowNickNameCharacter(t,r){return e.Core.AllowNickNameCharacter(t,r).ret}static isNickNameCharacterAllowed(t){return e.Core.IsNickNameCharacterAllowed(t).ret}static clearBanList(){return e.Core.ClearBanList().ret}static isIpAddressBanned(t){return e.Core.IsIpAddressBanned(t).ret}static getWeaponSlot(t){return e.Core.GetWeaponSlot(t).ret}static addRule(t,r){return e.Core.AddRule(t,r).ret}static isValidRule(t){return e.Core.IsValidRule(t).ret}static removeRule(t){return e.Core.RemoveRule(t).ret}},Yt=class{static addCharModel(t,r,i,a){return e.CustomModel.AddCharModel(t,r,i,a).ret}static addSimpleModel(t,r,i,a,n){return e.CustomModel.AddSimpleModel(t,r,i,a,n).ret}static addSimpleModelTimed(t,r,i,a,n,o,s){return e.CustomModel.AddSimpleModelTimed(t,r,i,a,n,o,s).ret}static redirectDownload(t,r){return e.CustomModel.RedirectDownload(t.getPtr(),r).ret}static findModelFileNameFromCRC(t){return e.CustomModel.FindModelFileNameFromCRC(t)}static isValid(t){return e.CustomModel.IsValid(t).ret}static getPath(t){return e.CustomModel.GetPath(t)}},$t=class{static show(t,r,i,a,n,o,s){return e.Dialog.Show(t.getPtr(),r,i,a,n,o,s).ret}static hide(t){return e.Dialog.Hide(t.getPtr()).ret}};class C{ptr=null;id=null;constructor(t,r,i,a){if(arguments.length<2){const o=e.GangZone.FromID(t);if(o.ret===0)throw new Error("Failed to create gangzone");this.ptr=d(o.ret),this.id=t;return}const n=e.GangZone.Create(t,r,i,a);if(n.ret===0)throw new Error("Failed to create gangZone");this.ptr=d(n.ret),n.hasOwnProperty("id")&&(this.id=n.id)}destroy(){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.Destroy(this.ptr).ret?(this.ptr=null,this.id=null,!0):!1}getPtr(){return this.ptr}getID(){return this.id}showForPlayer(t,r){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.ShowForPlayer(t.getPtr(),this.ptr,r).ret}showForAll(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.ShowForAll(this.ptr,t).ret}hideForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.HideForPlayer(t.getPtr(),this.ptr).ret}hideForAll(){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.HideForAll(this.ptr).ret}flashForPlayer(t,r){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.FlashForPlayer(t.getPtr(),this.ptr,r).ret}flashForAll(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.FlashForAll(this.ptr,t).ret}stopFlashForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.StopFlashForPlayer(t.getPtr(),this.ptr).ret}stopFlashForAll(){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.StopFlashForAll(this.ptr).ret}isValid(){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.IsValid(this.ptr).ret}isPlayerIn(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.IsPlayerIn(t.getPtr(),this.ptr).ret}isVisibleForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.IsVisibleForPlayer(t.getPtr(),this.ptr).ret}getColorForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.GetColorForPlayer(t.getPtr(),this.ptr).ret}getFlashColorForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.GetFlashColorForPlayer(t.getPtr(),this.ptr).ret}isFlashingForPlayer(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.IsFlashingForPlayer(t.getPtr(),this.ptr).ret}getPos(){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.GetPos(this.ptr)}useCheck(t){if(!this.ptr)throw new Error("GangZone instance is not valid");return e.GangZone.UseCheck(this.ptr,t).ret}}class I{ptr=null;id=null;constructor(t,r,i,a,n,o){if(arguments.length<2&&typeof t=="number"){const c=e.Menu.FromID(t);if(c.ret===0)throw new Error("Failed to create menu");this.ptr=d(c.ret),this.id=t;return}const s=e.Menu.Create(t,r,i,a,n,o);if(s.ret===0)throw new Error("Failed to create menu");this.ptr=d(s.ret),s.hasOwnProperty("id")&&(this.id=s.id)}destroy(){if(!this.ptr)throw new Error("Menu instance is not valid");if(e.Menu.Destroy(this.ptr).ret){this.ptr=null,this.id=null;return}else return}getPtr(){return this.ptr}getID(){return this.id}addItem(t,r){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.AddItem(this.ptr,t,r).ret}setColumnHeader(t,r){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.SetColumnHeader(this.ptr,t,r).ret}showForPlayer(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.ShowForPlayer(this.ptr,t.getPtr()).ret}hideForPlayer(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.HideForPlayer(this.ptr,t.getPtr()).ret}disable(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.Disable(this.ptr).ret}disableRow(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.DisableRow(this.ptr,t).ret}isValid(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.IsValid(this.ptr).ret}isDisabled(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.IsDisabled(this.ptr).ret}isRowDisabled(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.IsRowDisabled(this.ptr,t).ret}getColumns(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetColumns(this.ptr).ret}getItems(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetItems(this.ptr,t).ret}getPos(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetPos(this.ptr)}getColumnWidth(){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetColumnWidth(this.ptr)}getColumnHeader(t){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetColumnHeader(this.ptr,t)}getItem(t,r){if(!this.ptr)throw new Error("Menu instance is not valid");return e.Menu.GetItem(this.ptr,t,r)}}class qt{static connect(t,r){return e.NPC.Connect(t,r).ret}}class V{ptr=null;id=null;constructor(t,r,i,a,n,o,s,c){if(arguments.length<2){const y=e.Object.FromID(t);if(y.ret===0)throw new Error("Failed to create object");this.ptr=d(y.ret),this.id=t;return}const w=e.Object.Create(t,r,i,a,n,o,s,c);if(w.ret===0)throw new Error("Failed to create object");this.ptr=d(w.ret),w.hasOwnProperty("id")&&(this.id=w.id)}destroy(){if(!this.ptr)throw new Error("Object instance is not valid");if(e.Object.Destroy(this.ptr).ret)this.ptr=null,this.id=null;else throw new Error("Failed to destroy object")}getPtr(){return this.ptr}getID(){return this.id}attachToVehicle(t,r,i,a,n,o,s){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.AttachToVehicle(this.ptr,t.getPtr(),r,i,a,n,o,s).ret}attachToObject(t,r,i,a,n,o,s,c){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.AttachToObject(this.ptr,t.getPtr(),r,i,a,n,o,s,c).ret}attachToPlayer(t,r,i,a,n,o,s){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.AttachToPlayer(this.ptr,t.getPtr(),r,i,a,n,o,s).ret}setPos(t,r,i){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.SetPos(this.ptr,t,r,i).ret}getPos(){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.GetPos(this.ptr)}setRot(t,r,i){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.SetRot(this.ptr,t,r,i).ret}getRot(){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.GetRot(this.ptr)}getModel(){if(!this.ptr)throw new Error("Object instance is not valid");return e.Object.GetModel(this.ptr).ret}