Custom Functions

Hemos añadido dos funciones custom en el cliente y en el servidor las cuales no se puede cambiar el nombre de las mismas ya que eso afectaría al código principal. Aquí le dejamos un poco más de información para que sepa que añadir dentro de las funciones:
customNotificationFunction(message)
El parámetro
message
es el mensaje que aparece en la notificación, eso significa que en el export o evento que utilice su servidor para enseñar las notificaciones, deberá pasarmessage
como el mensaje.
customPoliceAlert(coords)
El parámetro
coords
son las coordenadas desde donde se avisa a la policía, para que así se pueda marcar en el mapa la ubicación del aviso.
customNotificationFunction(src, message)
El parámetro
src
es el jugador al que se le debe mandar la notificación, de esa manera solo recibirá la notificación el jugador que debe recibirla.El parámetro
message
es el mensaje que aparece en la notificación, eso significa que en el export o evento que utilice su servidor para enseñar las notificaciones, deberá pasarmessage
como el mensaje.
customInventoryFunction(src, item, quantity)
El parámetro
src
es el jugador al que se le debe mandar la notificación, de esa manera solo recibirá la notificación el jugador que debe recibirla.El parámetro
item
se refiere al item que se tiene que actualizar en el inventario, ya sea añadir o eliminar.El parámetro
quantity
se refiere a la cantidad que tiene que actualizar de ese mismo item, ya sea la cantidad que se haya que quitar o añadir.

We have added two custom functions on the client and on the server, which cannot be renamed as this would affect the main code. Here is a little more information so you know what to add to the functions:
customNotificationFunction(message)
The
message
parameter is the message that appears in the notification, that means that in the export or event that your server uses to show the notifications, you must passmessage
as the message.
customPoliceAlert(coords)
The
coords
parameter is the coordinates from where the police are notified, so that the location of the notice can be marked on the map.
customNotificationFunction(src, message)
The
src
parameter is the player to whom the notification should be sent, that way only the player who should receive the notification will receive it.The
message
parameter is the message that appears in the notification, that means that in the export or event that your server uses to show the notifications, you must passmessage
as the message.
customInventoryFunction(src, item, quantity)
The
src
parameter is the player to whom the notification should be sent, that way only the player who should receive it will receive the notification.The
item
parameter refers to the item that has to be updated in the inventory, whether it is added or removed.The
quantity
parameter refers to the quantity that has to be updated of that same item, whether it is the quantity that has to be removed or added.
Last updated