Squirrel/Server/Functions
From Liberty Unleashed Wiki
(Difference between revisions)
(Marked this version for translation) |
|||
Line 1: | Line 1: | ||
{{Squirrel/Title|Server Functions}} | {{Squirrel/Title|Server Functions}} | ||
− | <translate>This is a list of server-side Squirrel functions available in Liberty Unleashed and Vice Unleashed. For a list of client-side functions, check [[Squirrel/Client/Functions|here]]. For a list of non-native server-side functions, please check the [[Modules|Squirrel modules]] page for a list of official and third party modules available. | + | <translate><!--T:1--> |
+ | This is a list of server-side Squirrel functions available in Liberty Unleashed and Vice Unleashed. For a list of client-side functions, check [[Squirrel/Client/Functions|here]]. For a list of non-native server-side functions, please check the [[Modules|Squirrel modules]] page for a list of official and third party modules available. | ||
+ | <!--T:2--> | ||
If you want to request a new function for scripting, please use [[Squirrel/Scripting_Requests|this page]].</translate> | If you want to request a new function for scripting, please use [[Squirrel/Scripting_Requests|this page]].</translate> | ||
Revision as of 16:51, 26 July 2012
This is a list of server-side Squirrel functions available in Liberty Unleashed and Vice Unleashed. For a list of client-side functions, check here. For a list of non-native server-side functions, please check the Squirrel modules page for a list of official and third party modules available.
If you want to request a new function for scripting, please use this page.
Blip Functions
- Blip.DisplayType
- Blip.Colour
- Blip.Icon
- Blip.ID
- Blip.Owner
- Blip.Pos
- Blip.Size
- Blip.Remove
- CreateBlip
- CreateClientBlip
- FindBlip
- GetBlipCount
Camera Functions
Cheat Functions
Checkpoint Functions
- CreateCheckpoint
- CreateClientCheckpoint
- Checkpoint.Colour
- Checkpoint.ID
- Checkpoint.Owner
- Checkpoint.Pos
- Checkpoint.Radius
- Checkpoint.Remove
- Checkpoint.Type
- Checkpoint.VirtualWorld
- FindCheckpoint
- GetCheckpointCount
Effect Functions
Game Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock
Hashing Functions
These functions are provided by the official module lu_hashing.
Hash Table Functions
- FindHashTable
- HashTable
- HashTable.Add
- HashTable.Close
- HashTable.Dec
- HashTable.Del
- HashTable.Get
- HashTable.Inc
- HashTable.Load
- HashTable.Save
Ini Functions
These functions are provided by the official module lu_ini.
- ClearIni
- CountIniSection
- DeleteIniSection
- ReadIniBool
- ReadIniFloat
- ReadIniIndex
- ReadIniInteger
- ReadIniString
- RemoveIniValue
- WriteIniBool
- WriteIniFloat
- WriteIniInteger
- WriteIniString
Message Functions
- BigMessage
- ClearMessages
- Message
- MessageAllExcept
- MessagePlayer
- PagerMessage
- SendPlayerMessage
- SmallMessage
Misc Functions
- BanIP
- BanPlayer
- BanLUID
- UnbanLUID
- UnbanName
- GetBodyPartName
- GetDistrictName
- KickPlayer
- SendRconCommand
- UnbanIP
Object Functions
- CreateObject
- FindObject
- GetObjectCount
- Object.Angle
- Object.ID
- Object.Model
- Object.MoveTo
- Object.Pos
- Object.Remove
- Object.RotateTo
- Object.Stop
- Object.VirtualWorld
Pickup Functions
- CreatePickup
- FindPickup
- GetPickupCount
- Pickup.ID
- Pickup.InstantRespawn
- Pickup.Life
- Pickup.Model
- Pickup.OneTime
- Pickup.Pos
- Pickup.Remove
- Pickup.Respawn
- Pickup.RespawnTime
- Pickup.VirtualWorld
Player Functions
- FindPlayer
- GetClosestPlayer
- Player.Alpha
- Player.Angle
- Player.Armour
- Player.Cash
- Player.Class
- Player.ClearWeapons
- Player.Colour
- Player.ColouredName
- Player.EnterVehicle
- Player.ExitVehicle
- Player.ForceToSpawnScreen
- Player.Frozen
- Player.GetBoundariesLower
- Player.GetBoundariesUpper
- Player.GetIgnored
- Player.Health
- Player.ID
- Player.IP
- Player.Immune
- Player.Island
- Player.LUID
- Player.Marker
- Player.MarkerScale
- Player.MarkerSprite
- Player.Muted
- Player.Name
- Player.Nametag
- Player.NametagColour
- Player.Ping
- Player.Pos
- Player.RemoveFromVehicle
- Player.RemoveLimb
- Player.Score
- Player.SetAnim
- Player.SetBoundaries
- Player.SetIgnored
- Player.SetIgnoredBy
- Player.SetVehicleEnterDoor
- Player.SetWeapon
- Player.Skin
- Player.Spawn
- Player.Spawned
- Player.Team
- Player.Train
- Player.Vehicle
- Player.VehicleSeat
- Player.Velocity
- Player.VirtualWorld
- Player.WantedLevel
- Player.Weapon
- Player.SetWeapon
- Player.WeaponAmmo
- Player.WeaponState
Script Functions
- RegisterRemoteFunc
- UnregisterRemoteFunc
- CallClientFunc
- CallFunc
- DecScriptData
- DelScriptData
- GetScriptData
- IncScriptData
- LoadModule
- LoadScript
- SetScriptData
- UnloadScript
Server Setting Functions
- GetGamemodeName
- GetMapName
- GetMaxPlayers
- GetMTUSize
- GetPassword
- GetPlayers
- GetPort
- GetServerName
- SetGamemodeName
- SetMapName
- SetMaxPlayers
- SetPassword
- SetPort
- SetServerName
- SetServerRule
Socket Functions
- NewSocket
- Socket.Connect
- Socket.Delete
- Socket.Send
- Socket.SendClient
- Socket.SetLostConnFunc
- Socket.SetNewConnFunc
- Socket.Start
- Socket.Stop
- Socket.Close
Sound Functions
- FindSound
- PlayFrontEndSound
- PlayFrontEndTrack
- PlaySuspectLastSeen
- Sound.Close
- Sound.Open
- Sound.Play
- Sound.Pause
- Sound.Stop
- StopFrontEndTrack
Spawn Functions
- AddSpawnClass
- AddSpawnScreen
- FindSpawnClass
- GetSpawnClassCount
- SpawnClass.Angle
- SpawnClass.Colour
- SpawnClass.GetWeapon
- SpawnClass.GetWeaponAmmo
- SpawnClass.ID
- SpawnClass.Pos
- SpawnClass.RemoveWeapon
- SpawnClass.AddWeapon
- SpawnClass.Skin
- SpawnClass.SpawnScreen
- SpawnClass.Team
Sphere Functions
- CreateClientSphere
- CreateSphere
- FindSphere
- GetSphereCount
- Sphere.Colour
- Sphere.ID
- Sphere.Owner
- Sphere.Pos
- Sphere.Radius
- Sphere.Remove
- Sphere.Type
- Sphere.VirtualWorld
SQLite Functions
These functions are provided by the official module lu_sqlite.
- sqlite_close
- sqlite_column_count
- sqlite_column_data
- sqlite_free
- sqlite_next_row
- sqlite_open
- sqlite_query
Timer Functions
Util Functions
- GetDistance
- GetDistance2D
- GetFullTime
- GetTickCount
- GetTime
- GetTok
- InPoly
- IsIn
- IsNum
- NumTok
- RandomString
Vehicle Functions
- CreateVehicle
- FindVehicle
- GetClosestVehicle
- GetVehicleCount
- GetVehicleHandlingData
- GetVehicleIDFromName
- GetVehicleName
- SetVehicleHandlingData
- Vehicle.Alpha
- Vehicle.Angle
- Vehicle.Colour1
- Vehicle.Colour2
- Vehicle.Driver
- Vehicle.EngineDamage
- Vehicle.Explode
- Vehicle.Fix
- Vehicle.GetAddon
- Vehicle.GetPassenger
- Vehicle.GetHandlingData
- Vehicle.GetWheelStatus
- Vehicle.Health
- Vehicle.ID
- Vehicle.IdleRespawnTime
- Vehicle.IdleTime
- Vehicle.LightState
- Vehicle.Locked
- Vehicle.Marker
- Vehicle.MarkerScale
- Vehicle.MarkerSprite
- Vehicle.Model
- Vehicle.OneTime
- Vehicle.PassengerCount
- Vehicle.Pos
- Vehicle.Remove
- Vehicle.Respawn
- Vehicle.RespawnTime
- Vehicle.RGBColour1
- Vehicle.RGBColour2
- Vehicle.SetHandlingData
- Vehicle.SetWheelStatus
- Vehicle.SpawnAngle
- Vehicle.SpawnPos
- Vehicle.SetAddon
- Vehicle.SetEngineState
- Vehicle.SetRadio
- Vehicle.Siren
- Vehicle.SirenLight
- Vehicle.TaxiLight
- Vehicle.Velocity
- Vehicle.VirtualWorld
- Vehicle.Wrecked
Weapon Functions
XML Functions
- XmlDocument
- XmlDocument.Clear
- XmlDocument.FirstChild
- XmlDocument.LinkChild
- XmlDocument.LoadFile
- XmlDocument.Name
- XmlDocument.SaveFile
- XmlElement
- XmlElement.Clear
- XmlElement.FirstChild
- XmlElement.GetAttribute
- XmlElement.LinkChild
- XmlElement.LinkSibling
- XmlElement.Name
- XmlElement.NextSibling
- XmlElement.Parent
- XmlElement.RemoveAttribute
- XmlElement.RemoveChild
- XmlElement.RemoveSibling
- XmlElement.SetAttribute
- XmlElement.Text