Seeing that most of us here are pretty decent scripters, I'm going to leave a list of undocumented functions in the Squirrel server that were found. I really don't like the idea of having "zomg excloosive" scripts when these functions are present in every copy of the Squirrel server. I also don't like having one server be able to use scripts that were accidentally skipped over when documenting the wiki, as it lowers the quality of other servers and makes the community overall shittier.
tl;dr morphine and gudio be mad
I did not do this alone. Gudio had found some other functions, and Morphine encouraged me to find the functions and, if my memory serves me right, found a couple as well. If you must ask what these do or how you use these, close this tab or window right now.
I decided not to post this on the official VC:MP Squirrel forum because god knows how many nabs await there.
Level 1Stuff with no wiki pagesPlayer.SetIgnoredBy( Player playerToBlock, Boolean toBlock )This will make the player ignore the given
playerToBlock parameter, if
toBlock is true. In other words, they'll be muted only to that player. When set to false, they are unmuted to the blocking player.
Player.IsIgnoredBy( Player playerPossiblyBlocked )Returns boolean (true/false) value of whether the Player object is ignoring the
playerPossiblyBlocked parameter.
SetWeaponDamage( Integer weapon, Float damage )Does what it says on the label; default values for weapons are unknown. It's likely they correspond to the game's weapon configuration.
RemoveAllPickups( void )Does what it says on the label; should remove all pickups.
Level 2Shit that doesn't even appear on the wikionPlayerCrashDump( Player player, CrashAddress crash )Called when a player performs a crash dump. However, their disconnection is not automatic. You will need to kick the player to make good use of this event.
onBannedConnectionAttempt( String IP )Called when an RCON-banned player queries or attempts to join the server. Only their IP is passed, as a proper Player object is impossible to create given the nature of the event.
String Player.VelocitySimply prints the string "Velocity" and is of no use.
Vector2D Vehicle.VelocityWorking vehicle velocity counter which can be useful for making speedometers. Returns a two-dimensional vector (x, y) which can then be used to calculate speed using this code:
local v = player.Vehicle.Velocity;
local s = ( ( sqrt( (v.x * v.x) + (v.y * v.y) ) * 230 ) + 0.5).tointeger(); // kilometers per hour
GetPickupCount( void )Simply returns the pickup count. Good if you dynamically create pickups but don't want to reach the limit.
GetVehicleCount( void )Like GetPickupCount, returns the number of vehicles on the server.
CreateStaticVehicle( Integer model, Vector pos, Float angle, Integer col1, Integer col2 )Working alias to CreateVehicle and can be used at any point in the script like CreateVehicle.
SetPlayerDesyncedPos( Player player, Vector pos )Unknown if working. If it does work, this function presumably sets a desynced player's position, which will appear unchanged to synced players.
SetVehicleDesyncedPos( Vehicle vehicle, Vector pos )See SetPlayerDesyncedPos
Level 3Console commandsunload_script filenameUnloads a script according to filename
load_script filenameLoads a script according to filename (see: load_script)
Orange -- Unknown if working
This information is likely going to be copied to the official Squirrel wiki... eventually.