exports / triggers
Client Exports / Triggers
Export
Result
exports.brutal_gym:gymDoExercises()
true / false
exports.brutal_gym:GetSkillCount(skilltype)
number from 0 to 100, how many skill points you have
exports.brutal_gym:AddSkillCount(skilltype, count)
Add skill to the player Skill types:
Stamina / Running / Driving / Strength / Swimming / Shooting
exports.brutal_gym:RemoveSkillCount(skilltype, count)
Remove skill from the player Skill types:
Stamina / Running / Driving / Strength / Swimming / Shooting
For example:
local isDoGYMExercises = exports.brutal_gym:gymDoExercises()
if isDoGYMExercises == true then
print('Player is doing gym exercises right now.')
elseif isPlayerBoxing == false then
print('Player is NOT doing gym exercises right now.')
end
exports.brutal_gym:AddSkillCount('Strength', 2) -- Add 2 skill points for the strength of the player
exports.brutal_gym:RemoveSkillCount('Strength', 2) -- Remove 2 skill points for the strength of the player
Last updated
Was this helpful?