MadonneStudio Scripts Documentation
Tebex StoreDiscordSite Internet
  • About MadonneStudio
  • How to buy our scripts ?
  • Need an extra support ?
  • 💲Paid Scripts
    • 🔨Madonn'Admin
      • First Launch
      • Script Installation
      • Configuration
        • Dashboard Configuration
          • Community Settings
          • Manage Servers
          • Manage Permissions
          • Install the Discord Bot
        • Script Configuration
          • Main Configuration File
          • Anticheat Configuration
          • Blips Configuration
          • Buttons Configuration
          • Commands Configuration
          • Logs Configuration
          • Sanctions Configuration
      • How to use it ?
        • Web Dashboard
          • Main Page
          • Servers
          • Players
          • Staffs
          • Appeals
          • Logs
        • In Game Dashboard
          • Home interface
          • Players list
          • Logs
          • Settings
          • In Game Commands
        • Discord Functionalities
      • API / Exports
    • ⛅Madonne Seasons
      • Installation
      • Configuration
      • Common Errors
    • 🔫Wearable Weapon
      • Installation
      • Configuration
      • Common Errors
    • 🛡️Madonne PVP
      • Installation
      • Configuration
      • Common Errors
    • 🚙Madonne Car Spawner
      • Installation
      • Configuration
      • Common Errors
    • 👕Madonne EUP Menu
      • Installation
      • Configuration
      • Common Errors
  • 🆓Free scripts
    • 🚗Madonne Seatbelt
      • Installation
      • Configuration
      • Common Errors
    • 🗑️Delete Gun
      • Installation
      • Configuration
      • Common Errors
  • 🖌️Vehicles livery
    • 🌲SASPR Pack
      • How to install ?
Powered by GitBook
On this page
  • To use in a client-side script
  • To use in a server-side script

Was this helpful?

  1. Paid Scripts
  2. Madonn'Admin

API / Exports

In order to make Madonn'Admin usable from other resources, exports/events have been planned. Here is their list and how to use them.

If you need specific access to Madonn'Admin, do not hesitate to contact us, we can unlock new exports to suit your needs.

To use in a client-side script

GetStaffRank()

Returns as int, the rank of the player who is performing the function.

  • -1 = Owner

  • 0 = Player

  • 1 + = Staff Member

IsPlayerTrusted()

Returns false if the player who is performing the function have one of this following flags :

  • Last Chance

  • Sanction Lover

  • Untrusted

  • Untrusted +

TriggerServerEvent("MadonnAdmin:SendBroadcast",message)

Send a message to all players, through Madonn'Admin

  • Message (string) = Message that you want to send to everyone

To use in a server-side script

GetStaffLevelServerSide(source)

Returns as int, the rank of the player specified

  • -1 = Owner

  • 0 = Player

    • 1 + = Staff Member

TriggerEvent("MadonnAdmin:SendBroadcast",message)

Send a message to all players, through Madonn'Admin

  • Message (string) = Message that you want to send to everyone

Last updated 5 months ago

Was this helpful?

💲
🔨