Config.Abilities = {
['wizard'] = {
name = "Wizard",
displayOrder = 1,
isVisible = function(source)
-- return true if the ability should be visible in the UI
-- server side
return true
end,
abilities = {
['water_spell'] = {
label = "Water spell",
icon = "fas fa-user",
useCooldown = 5,
onUse = function()
-- client side
print("Water spell used by "..GetPlayerName(PlayerId()))
return true -- return true if the ability was used successfully, false cooldown will not be triggered
end
},
['fire_spell'] = {
label = "Fire spell",
icon = "fire_spell.png",
useCooldown = 5,
onUse = function()
-- client side
print("Fire spell used by "..GetPlayerName(PlayerId()))
return true -- return true if the ability was used successfully, false cooldown w
end
},
}
},
['vampire'] = {
name = "Vampire",
displayOrder = 2,
isVisible = function(source)
-- return true if the ability should be visible in the UI
-- server side
return true
end,
abilities = {
['more_hp'] = {
label = "More Hp",
icon = "more_hp.png",
useCooldown = 5,
onUse = function()
-- client side
print("More hp used by "..GetPlayerName(PlayerId()))
return true -- return true if the ability was used successfully, false cooldown w
end
},
}
},
}
Hotbar settings
Config.UseBuildInHotBar = true --- true/false
Use the build in hotbar, if set to false you can use your own hotba if you are using custom hotbar use client event to listen for hotbar changes