ByteXcripts Docs
  • 👋Welcome
  • 📸Camera Mode
    • Settings
    • Filters
  • 🚕NPC Taxi
    • Settings
    • Custom Functions
  • 🎰Roulette
    • Settings
    • Custom Functions
  • 📝Text UI
    • Settings
    • Exports
    • How to use it
  • 💊Sell Drugs
    • Settings
    • Custom Functions
  • 🏠House Robbery
    • Settings
    • Custom Functions
    • Custom Interiors
Powered by GitBook
On this page
  1. Roulette

Custom Functions

PreviousSettingsNextText UI

Last updated 4 months ago

Hemos añadido una función custom la cual no se puede cambiar el nombre de la misma 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 la función:

client/custom-functions.lua
customNotificationsFunction(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á pasar message como el mensaje.

También hemos añadido una función custom del lado del servidor la cual no se puede cambiar el nombre de la misma 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 la función:

server/custom-functions.lua
customNotificationsFunction(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á pasar message como el mensaje.

We have added one custom function whose names cannot be changed, as doing so would affect the main code. Below is more information to guide you on what to include within the function:

custom-functions.lua
customNotificationsFunction(message)
  • The message parameter is the content displayed in the notification. This means that in the export or event your server uses to display notifications, you should pass message as the notification text.

We have also added a custom function on the server side, and its name cannot be changed either, as doing so would affect the main code. Here is some additional information to guide you on what to include within the function:

customNotificationsFunction(src, message)
  • The src parameter specifies the player who should receive the notification. This ensures that only the intended player will see the notification.

  • The message parameter is the content displayed in the notification. This means that in the export or event your server uses to display notifications, you should pass message as the notification text.

🎰