Price
UnknownA script by ZypMert
Price
UnknownFEATURES
INFORMATIONS
Config = {
-- language
weaponTranslations = 'German', -- available: German, Spanish, Russian, Japanese, SimplifiedChinese, TraditionalChinese, Korean, Portuguese, Mexican, Polish, Italian, English, French
-- xp
killxp_enabled = true, --enable xp/level system?
xp_per_kill = 100, -- how much xp should each kill give
xp_for_level = 250, -- xp needed for first level (after that it is xp_for_level * (1 + xp_multiplier))
xp_multiplier = 0.10, -- increases the xp needed per level by 10% each level
-- hud options
enable_points = true, -- do you want to use the points display? you can change tha value via this event: oct_clhud:updatePoints -> example: TriggerEvent('oct_clhud:updatePoints', 'TextHere')
enable_timeleft = true, -- do you want to use the Time Left display?
enable_MapHealthBar = true, -- do you want to use the health and armour bar below the minimap?
enable_hudHealth = true, -- do you want to use the health and armour bar that comes with the hud?
--kill config
countAllKills = true, -- do you want that deaths are only counted when you are killed (false) or always (true)
-- command permissions
AnnounceGroups = {
'admin',
'superadmin',
'moderator'
},
TimerGroups = {
'admin',
'superadmin',
'moderator'
}
}
Config.Language = {
teaminvite_canceled_title = 'Team invitation canceled',
teaminvite_accepted_title = 'Team invitation accepted',
teaminvite_denied_title = 'Team invitation declined',
teaminvite_accepted_msg = 'The player with ID %s has joined your team',
teaminvite_denied_msg = 'The player with ID %s declined your invitation',
teaminvite_err_offline = 'The player with ID %s is not online',
teaminvite_err_selfinvite = 'You can\'t invite yourself',
teaminvite_err_isinteam = 'The player with ID %s is already on a team',
teaminvite_err_teamfull = 'Your team is full',
teaminvite_request_title = 'Team invitation',
teaminvite_request_msg = 'Would you like to join %s\'s team? (/leaveteam to leave)',
}
installation:
function ESX.ShowNotification(message, type, length)
if GetResourceState("esx_notify") ~= "missing" then
return exports["esx_notify"]:Notify(type, length, message)
end
print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
end
with this:
function ESX.ShowNotification(message, type, length)
exports['oct_clhud']:notify('Notification', message or 'no message given', length or 5000)
end
exports:
client side:
- notification:
exports[‘oct_clhud’]:notify(‘Title’, ‘Message’, 5000) ← 5000 is the duration (5 secs)
- request:
exports['oct_clhud']:request('Title', 'Message', 10000, function(accepted) <- 10000 is the duration (10 secs) and the function gets called after the request has been answered
print(accepted)
end)
- progress:
exports['oct_clhud']:progress(10000, 'Text', function() <- 10000 is the duration (10 secs) and the function gets called after the progressbar has ended
end)
if you dont want a callback you can do:
exports['oct_clhud']:progress(10000, 'Text')
server side:
- announcement:
exports['oct_clhud']:announce('Title', 'Message', 5000) <- 5000 is the duration (5 secs)
- timer:
exports['oct_clhud']:hudtimer(minutes), example: exports['oct_clhud']:hudtimer(10) <- Countdown from 10 minutes
commands:
/teaminvite
/leaveteam
/announce <?duration>
/hudtimer
| Code is accessible | No/Only Frontend |
| Subscription-based | No |
| Lines (approximately) | ~1300 Frontend ~700 Backend ~3000 Language |
| Requirements | ESX |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.