MP-Base

All Export and events off base.

Server Side

exports:

GetObject()
Returns MP

changeMoney(source, bankingType, amount, changer)
changes money of player, source, type="cash/bank", amount, changer="add/del"

Events / Functions

MP.Functions.RegisterServerCallback(name,cb)
Registers callback

MP.Functions.TriggerServerCallbackname, requestId, source, cb, ...)
Triggers callback

MP.Functions.GetPlayer(source)
Grabs player allows you to use Player.Functions

MP.Functions.GetPlayerData()
Gets Client Side Player Data

MP.Functions.DeleteObject(object)
deletes passed object

MP.Functions.TriggerServerCallback(name, cb, ...)
Triggers a server callback

MP.Functions.GetPlayers()
Gets players client side

MP.Functions.GetClosestPlayer(coords)
Gets the closest player from you.

MP.Functions.RegisterServerCallback(name, cb)
Registers a server callback.

MP.Functions.TriggerServerCallback(name, requestId, source, cb, ...)
Triggers the callback.

MP.Functions.GetPlayer(source)
Gets Data of player.

MP.Functions.AdminPlayer(source)
Gets Data of admin player.

MP.Functions.CreatePlayer(source, Data)
Takes data from the ui and adds character to database.

MP.Functions.LoadPlayer(source, pData, cid, new)
Takes data in and begins to load the player and checks if it's a new player.

MP.Functions.setGroup(player, group)
Sets group if the player is an admin on load and ranking sql table.

Client Side

exports:

Events / Functions:


Player

Last updated