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. NPC Taxi

Custom Functions

PreviousSettingsNextRoulette

Last updated 4 months ago

Hemos añadido dos funciones custom 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:

custom_functions.lua
customNotification(msg, type)
  • El parámetro msg 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 msg como el mensaje.

  • El parámetro type es el tipo de notificación que es, eso significa que si es un error el type será igual a error. Los tipos que hay son los siguientes: "error", "success" y "primary". Si su sistema de notificaciones no usa type, puede ignorar este parámetro.

custom_functions.lua
customDisplayHelpText(msg)
  • El parámetro msg es el mensaje que aparece en el Help Text UI, eso significa que en el export o evento que utilice su servidor para enseñar el Help Text UI, deberá pasar msg como el mensaje.

We have added two custom functions 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 these functions:

custom_functions.lua
customNotification(msg, type)
  • The msg parameter is the message displayed in the notification. This means that in the export or event your server uses to display notifications, you should pass msg as the message.

  • The type parameter specifies the type of notification. For example, if it is an error, type should be set to "error". The available types are: "error", "success" and "primary". If your notification system does not use type, you can ignore this parameter.

custom_functions.lua
customDisplayHelpText(msg)
  • The msg parameter is the message displayed in the Help Text UI. This means that in the export or event your server uses to display the Help Text UI, you should pass msg as the message.

🚕