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 Notify
      • Installation
      • Common Errors
    • 🚗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

Was this helpful?

  1. Paid Scripts
  2. Madonn'Admin
  3. Configuration
  4. Script Configuration

Buttons Configuration

Default configuration file
BUTTONS = {
	-- Use this models to create buttons on differents in game player profiles
	[1] = {
		Title = "Heal",
		HaveAccess = true, -- true = visible for all staffs | {1,2,3} = visible only for this ranks
		Actions = function()
			if IsPedMale(PlayerPedId()) then
				SetEntityHealth(PlayerPedId(),200)
			else
				SetEntityHealth(PlayerPedId(),100)
			end
		end
	},
	[2] = {
		Title = "Tuer",
		HaveAccess = {1,2,3,4,5},
		Actions = function()
			SetEntityHealth(PlayerPedId(),0)
		end
	},
	[3] = {
		Title = "Dégeler / Geler",
		HaveAccess = {1,2,3,4,5},
		Actions = function()
			PlayerFrozen = not PlayerFrozen
		end
	},
	[4] = {
		Title = "Réparer le véhicule",
		HaveAccess = true,
		Actions = function()
			local vcl = GetVehiclePedIsIn(PlayerPedId(),false)
			SetVehicleEngineHealth(vcl, 1000.0)
			SetVehicleBodyHealth(vcl, 1000.0)
			SetVehiclePetrolTankHealth(vcl, 1000.0)
			SetVehicleFixed(vcl)
		end
	},
}

Player profile pages in games have several buttons. The first 4 correspond to teleport options and can be managed from the role settings, on the Web Dashboard.

For each button, you can choose a name, the ranks that have access to it, and the actions that this button will perform. These actions will be performed client-side. Do not hesitate to contact us for any help.

Last updated 5 months ago

Was this helpful?

💲
🔨