Custom Functions

Dispones de dos funciones personalizadas que puedes editar de parte del cliente.
La primera permite cambiar el menú de edición de la ropa del personaje: por defecto usamos illenium-appearance, pero puedes sustituirlo por cualquier otro sin problema.
La segunda función personalizada corresponde a los mensajes enviados a los usuarios. Utilizamos un evento propio de nuestro sistema de chat, pero puedes reemplazarlo por el evento de tu propio chat sin inconvenientes. Por parte del servidor, dispones de una función personalizada: Esta función permite revivir al jugador que ha solicitado el ticker y puede ser personalizada por si usan un script custom para ello.

You have two customizable functions that can be edited.
The first one allows you to change the character clothing editor menu: by default we use illenium-appearance, but you can replace it with any other without any issues.
The second customizable function is for messages sent to users. We use a custom event from our own chat system, but you can switch it to your own chat’s event without any problem.
On the server side, you have a customizable function: This function allows you to revive the player who submitted the ticket, and it can be modified in case you use a custom script for that purpose.
Client Custom Functions:
function openClothesMenu()
fivemappearanceConfig = {
ped = false, headBlend = true, faceFeatures = true, headOverlays = true, components = true, componentConfig = { masks = true, upperBody = true, lowerBody = true, bags = true, shoes = true, scarfAndChains = true, bodyArmor = true, shirts = true, decals = true, jackets = true }, props = true, propConfig = { hats = true, glasses = true, ear = true, watches = true, bracelets = true }, tattoos = true, enableExit = true,
}
Wait(1400)
exports['illenium-appearance']:startPlayerCustomization(function (appearance)
if (appearance) then
TriggerServerEvent('bx_reportsystem:saveAppearance', appearance)
else
local appearance = exports['illenium-appearance']:getPedAppearance(playerPed)
TriggerServerEvent('bx_reportsystem:saveAppearance', appearance)
end
end, fivemappearanceConfig)
endfunction sendMSGToUser (targetId, msg)
-- targetId: the player's ID to send the message to.
-- msg: the message to send.
TriggerServerEvent("bx_chat:server:SendStaffMessage", targetId, msg)
endServer Custom Functions:
function revivePlayer(userid)
-- userid: id of the user to revive
TriggerClientEvent("hospital:client:Revive", userid)
endLast updated