DSL Global Functions
All
Here's the list of all 327 global functions that DSL currently provides.
DSL 11
Not released yet.
DSL 10
142 global functions were added in DSL 10.
AllObjects
AllSyncEntities
AllSyncEntityValues
AllSyncPeds
AllSyncPlayers
AllSyncVehicles
AllVehicles
CameraIsWidescreen
CameraGetRotation
CameraGetXYZ
CopyTimecycle
CreateFolder
CreateSyncDimension
CreateSyncEntity
CreateSyncPed
CreateSyncVehicle
CreateTimecycle
DeleteSyncDimension
DeleteSyncEntity
DidPlayerUseLauncher
FindFile
FindFiles
ForceActionNode
ForceFacialNode
ForceTaskNode
GetControllerPed
GetExtraTimecycle
GetFrameCount
GetHudTexture
GetKeyCode
GetNodeFromData
GetPhysicsMult
GetRawPersistentDataTable
GetScreenCoords
GetSimulationSpeed
GetSyncActiveDimension
GetSyncDimensionName
GetSyncDimensionSpace
GetSyncEntityArea
GetSyncEntityDimension
GetSyncEntityFromId
GetSyncEntityId
GetSyncEntityModel
GetSyncEntityOwner
GetSyncEntityPed
GetSyncEntityPos
GetSyncEntitySpace
GetSyncEntityVehicle
GetSyncMainDimension
GetSyncPedVehicle
GetSyncPlayerFromPed
GetSyncPlayerPed
GetSyncVehiclePassenger
GetTimecycle
GetVolumeSetting
IsSyncActive
IsSyncDimensionValid
IsSyncEntityOwned
IsSyncEntityReady
IsSyncEntityValid
IsSyncPedValid
IsSyncVehicleValid
LockSyncEntityOwner
ObjectIsValid
ObjectFaceHeading
ObjectGetEntityFlag
ObjectGetHeading
ObjectGetModelId
ObjectGetPosXYZ
ObjectGetRotation
ObjectSetEntityFlag
ObjectSetPosXYZ
ObjectSetRotation
PedCanEnterVehicle
PedGetActionNode
PedGetActionNodeData
PedGetActionTree
PedGetControllerID
PedGetFacialNode
PedGetFacialNodeData
PedGetPunishmentPoints
PedGetSyncEntity
PedGetTaskNode
PedGetTaskNodeData
PedIsDoingFacial
PedMeDoingFacial
PedMeDoingTask
PedSetActionNodeSimple
PedSetFacialNodeSimple
PedSetTaskNodeSimple
PlayerHasControl
RegisterFunction
RequireSync
RestoreTimecycles
SavePersistentDataTables
SeasonGet
SetAllTimecycles
SetExtraTimecycle
SetHelpText
SetMinigameActive
SetMissionActive
SetSimulationSpeed
SetStoryDisabled
SetSyncActiveDimension
SetSyncEntityDimension
SetSyncEntityModel
SetSyncEntityPos
SetSyncPedVehicle
SetSyncPlayerPed
SetTimecycle
SetVolumeSetting
SoundPlayAmbientSpeechEventSpecific
UnlockSyncEntityOwner
VehicleGetColor
VehicleGetColours
VehicleGetPassenger
VehicleGetRotation
VehicleGetStatus
VehicleGetSyncEntity
VehicleSetPosSimple
VehicleSetRotation
VehicleUseHorn
WasSyncEntityUpdated
WeatherGetNext
WeatherGetNow
WeatherGetTransition
WeatherTransition
type2
ptr(address)
PedGetPointer
VehicleGetPointer
float
double
int8
int16
int32
uint8
uint16
uint32
GetString
SetString
ReplaceCode
DSL 9
2 global functions were added in DSL 9.
GetHash
IsHash
DSL 8
5 global functions were added in DSL 8.
GetCurrentScript
GetScriptFilePath
GetScriptNetworkTable
ObjectNameToHashID
QuitServer
DSL 7
5 global functions were added in DSL 7.
AllowOnServer
CanWriteFiles
PedGetThrottle
PedSetThrottle
StopCurrentScriptCollection
DSL 6
10 global functions were added in DSL 6.
GetAllPoolInfo
GetPoolSize
GetPoolSpace
GetPoolUsage
HookFunction
PedCreateScriptless
RemoveFunctionHook
ReplaceFunction
RequirePoolSize
ZeroController
DSL 5
37 global functions were added in DSL 5.
AllPeds
AllPlayers
ConnectToServer
DisconnectFromServer
ForceWindowUpdate
GetBaseGameFunction
GetConfigString
GetInputHardware
GetInternalResolution
GetLocalizedText
GetMouseScroll
GetPlayerIp
GetScreenResolution
GetScriptConfig
GetServerHz
GetServerList
GetTimer
IsMouseBeingPressed
IsMouseBeingReleased
IsMousePressed
IsNetworkingAllowed
IsPlayerValid
IsUsingJoystick
KickPlayer
PedGetModelId
PedSetPosSimple
PedSpoofModel
PrintSpecial
QuitGame
RegisterGameFile
RegisterNetworkEventHandler
RequestServerListing
SendNetworkEvent
SetButtonPressed
SetDrawLayer
SetStickValue
SetTextBlack
DSL 4
36 global functions were added in DSL 4.
ClearDisplay
CloseFile
CreateAdvancedThread
CreateRenderTarget
DrawBackBufferOntoTarget
FlushFile
GetAnyKeyBeingReleased
GetPersistentDataTable
GetScriptCollection
GetScriptName
GetSystemTimer
GetThreadName
ImportScript
IsActionNodeValid
IsDslScriptRunning
IsKeyValid
IsSaveDataReady
IsScriptZipped
LoadTable
MeasureTextInline
OpenFile
PackTable
ReadFile
RegisterLocalEventHandler
RegisterLocalizedText
RemoveEventHandler
ReplaceLocalizedText
RequireDependency
RunCommand
RunLocalEvent
SaveTable
SeekFile
SetRendererAlphaBlending
UnpackTable
UseProxyScriptForFunction
WriteFile
DSL 3
4 global functions were added in DSL 3.
DrawTextInline
DrawTexture2
GetPackageFilePath
IsGamePaused
DSL 2
4 global functions were added in DSL 2.
PopTextFormatting
SetTextBold
SetTextClipping
SetTextItalic
DSL 1
82 global functions were added in DSL 2.
AddScriptLoaderCallback
AllConfigStrings
AllConfigValues
CallFunctionFromScript
ClearCommand
CreateDrawingThread
CreateFont
CreateSystemThread
CreateTexture
CreateThread
DiscardText
DoesCommandExist
DontAutoStartScript
DrawRectangle
DrawText
DrawTexture
GetAnyKeyBeingPressed
GetAnyKeyPressed
GetConfigBoolean
GetConfigNumber
GetConfigStrings
GetConfigValue
GetDisplayAspectRatio
GetDisplayResolution
GetFrameTime
GetMouseInput
GetPlayerName
GetRawSaveDataTable
GetSaveDataTable
GetScriptEnvironment
GetScriptSharedTable
GetTextFormatting
GetTextureAspectRatio
GetTextureDisplayAspectRatio
GetTextureResolution
GetThreadWait
GetTypingString
IsConfigMissing
IsConsoleActive
IsKeyBeingPressed
IsKeyBeingReleased
IsKeyPressed
IsScriptRunning
IsSystemAccessAllowed
IsThreadRunning
IsTypingActive
LoadConfigFile
LoadScript
MeasureText
PackData
print
PrintError
PrintOutput
PrintWarning
RequireLoaderVersion
RequireSystemAccess
SetCommand
SetTextAlign
SetTextColor
SetTextColour
SetTextFont
SetTextFormatting
SetTextHeight
SetTextOutline
SetTextPosition
SetTextRedrawing
SetTextScale
SetTextShadow
SetTextureBounds
SetTextWrapping
StartScript
StartTyping
StartVirtualScript
StopTyping
TerminateCurrentScript
TerminateCurrentThread
TerminateScript
TerminateThread
UnpackData
UseBaseGameScriptFunctions
Wait
WasTypingAborted