@altv/types-server
Index
Classes
Enumerations
- AmmoSpecialType
- AudioCategories
- BaseObjectFilterType
- BaseObjectType
- Benefit
- BlipColor
- BlipSprite
- BlipType
- BodyPart
- CheckpointType
- CloudAuthResult
- ColShapeType
- ConnectDeniedReason
- ExplosionType
- FileEncoding
- KeyCode
- MarkerType
- ModelType
- NumberPlateStyle
- PedConfigFlag
- Permission
- RadioStation
- VehicleBumper
- VehicleBumperDamage
- VehicleDoor
- VehicleDoorState
- VehicleLockState
- VehicleModType
- VehiclePart
- VehiclePartDamage
- VoiceConnectionState
- WeatherType
- WindowTint
Functions
- addClientConfigKey
- clearEveryTick
- clearInterval
- clearNextTick
- clearTimeout
- deleteMeta
- deleteSyncedMeta
- emit
- emitAllClients
- emitAllClientsRaw
- emitAllClientsUnreliable
- emitClient
- emitClientRaw
- emitClientUnreliable
- emitRaw
- everyTick
- getAllResources
- getAmmoHashForWeaponHash
- getClosestEntities
- getColShapeTickRate
- getEntitiesInDimension
- getEntitiesInRange
- getEventListeners
- getLoadedVehicleModels
- getMaxStreamingObjects
- getMaxStreamingPeds
- getMaxStreamingVehicles
- getMeta
- getMetaKeys
- getMigrationDistance
- getMigrationThreadCount
- getMigrationTickRate
- getNetTime
- getPedModelInfoByHash
- getRemoteEventListeners
- getServerConfig
- getStreamerThreadCount
- getStreamingDistance
- getStreamingTickRate
- getSyncReceiveThreadCount
- getSyncSendThreadCount
- getSyncedMeta
- getSyncedMetaKeys
- getVehicleModelInfoByHash
- getVoiceConnectionState
- getWeaponModelInfoByHash
- hasBenefit
- hasMeta
- hasResource
- hasSyncedMeta
- hash
- hashServerPassword
- log
- logDebug
- logError
- logWarning
- nextTick
- off
- offClient
- offRpc
- on
- onClient
- onRpc
- once
- onceClient
- restartResource
- setColShapeTickRate
- setInterval
- setMaxStreamingObjects
- setMaxStreamingPeds
- setMaxStreamingVehicles
- setMeta
- setMigrationDistance
- setMigrationThreadCount
- setMigrationTickRate
- setPassword
- setStreamerThreadCount
- setStreamingDistance
- setStreamingTickRate
- setSyncReceiveThreadCount
- setSyncSendThreadCount
- setSyncedMeta
- setTimeout
- setVoiceExternal
- setVoiceExternalPublic
- startResource
- stopResource
- stopServer
- stringToSHA256
- time
- timeEnd
- toggleWorldProfiler
Interfaces
- IAmmoFlags
- IBoneInfo
- ICloth
- IConnectionInfo
- ICustomBaseObjectMeta
- ICustomBaseObjectSyncedMeta
- ICustomBlipMeta
- ICustomCheckpointMeta
- ICustomClientServerEvent
- ICustomClientServerRpc
- ICustomColshapeMeta
- ICustomEmitEvent
- ICustomEntityMeta
- ICustomEntityStreamSyncedMeta
- ICustomEntitySyncedMeta
- ICustomGlobalMeta
- ICustomGlobalSyncedMeta
- ICustomPedStreamSyncedMeta
- ICustomPedSyncedMeta
- ICustomPlayerLocalMeta
- ICustomPlayerMeta
- ICustomPlayerStreamSyncedMeta
- ICustomPlayerSyncedMeta
- ICustomServerClientEvent
- ICustomServerClientRpc
- ICustomVehicleMeta
- ICustomVehicleStreamSyncedMeta
- ICustomVehicleSyncedMeta
- ICustomVirtualEntityStreamSyncedMeta
- ICustomVoiceChannelMeta
- IDecoration
- IDlcCloth
- IDlcProp
- IFireInfo
- IHeadBlendData
- IHeadOverlay
- IInspectOptions
- IPedModel
- IProp
- IQuaternion
- IResource
- IResourceConfig
- IServerConfig
- IServerEvent
- IVector2
- IVector3
- IVehicleModel
- IVehicleNeon
- IWeapon
- IWeaponModel
- VehicleBadgePosition
Namespaces
Type Aliases
Variables
Type Aliases
DateTimeDay
DateTimeHour
DateTimeMinute
DateTimeMonth
DateTimeSecond
Variables
constbranch
constdebug
Returns if the resource is in debug mode.
constdefaultDimension
Default dimension (0). Read more: https://docs.altv.mp/articles/dimensions.html
constglobalDimension
Global dimension (-2147483648). Read more: https://docs.altv.mp/articles/dimensions.html
constisClient
A boolean indicating whether the current script is executed on the clientside.
constisServer
A boolean indicating whether the current script is executed on the serverside.
constresourceName
Resource name of the executing resource.
constrootDir
The root directory of the server.
constsdkVersion
Represents the current SDK version.
constversion
Represents the current version.
Represents the current branch.