Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {
- ESX = {
- Enable = true, -- if you use esx or not
- Trigger = "esx:getSharedObject",
- RespawnTime = 0.5 , -- minutes
- TempRespawn = true, -- if you able a respawn time
- PressKeyForReviveinInjuredMode = true, -- if you able a heal when the player are knocked down
- EventLoaded = 'esx:playerLoaded', -- player loaded event
- BandageItemName = "bandage", -- bandage item
- YourPhone = 'gcphone', -- gksphone, quasarphone or gcphone
- EnableRespawnTimeWithBandage = false, -- allow time to respawn with bandage
- RespawnWithBandageTime = 15000, -- if you want a delay for heal with bandage in knocked down, in msec
- Item = {
- { -- Here you can create any item you want, be default we have the medikit and the bandage
- name = "medikit", -- item name
- healt = 200, -- heal value
- revive = true, -- if revive
- removeitem = true, -- if the item will be removed after use
- forcejobusage = true, -- if you what that only job can use this item
- usenonearbyplayers = false, -- if you want that work only if there are player nearby
- animation = {
- enable = true, -- if you able the animation or change it
- lib = "anim@heists@narcotics@funding@gang_idle",
- anim = "gang_chatting_idle01",
- }
- },
- {
- name = "bandage",
- healt = 75,
- revive = false,
- removeitem = true,
- forcejobusage = false,
- usenonearbyplayers = true,
- animation = {
- enable = true,
- lib = "anim@heists@narcotics@funding@gang_idle",
- anim = "gang_chatting_idle01",
- }
- }
- }
- },
- UseProgressbar = false,
- PorgressbarTriggerForCancel = "progressbar:client:cancel",
- UseRProgress = true,
- RProgress = { -- Config of the rprogress
- Async = false,
- canCancel = false, -- Allow cancelling
- cancelKey = 178, -- Custom cancel key
- x = 0.5, -- Position on x-axis
- y = 0.5, -- Position on y-axis
- From = 0, -- Percentage to start from
- To = 100, -- Percentage to end
- Duration = 60000, -- Duration of the progress
- Radius = 60, -- Radius of the dial
- Stroke = 10, -- Thickness of the progress dial
- Cap = 'butt', -- or 'round'
- Padding = 0, -- Padding between the progress dial and the background dial
- MaxAngle = 360, -- Maximum sweep angle of the dial in degrees
- Rotation = 0, -- 2D rotation of the dial in degrees
- Width = 300, -- Width of bar in px if Type = 'linear'
- Height = 40, -- Height of bar in px if Type = 'linear'
- ShowTimer = true, -- Shows the timer countdown within the radial dial
- ShowProgress = false, -- Shows the progress % within the radial dial
- Easing = "easeLinear",
- Label = "Death", -- Label of your rbare
- LabelPosition = "right", --
- Color = "rgba(34, 211, 246, 1.0)",
- BGColor = "rgba(0, 0, 0, 0.4)",
- Animation = {},
- DisableControls = {},
- onStart = function()end,
- onComplete = function(cancelled)
- killedbytime = true
- end
- },
- Progressbar = {
- name = "wait_time",
- duration = 60000,
- label = "Death",
- useWhileDead = false,
- canCancel = false,
- controlDisables = {
- disableMovement = true,
- disableCarMovement = true,
- disableMouse = false,
- disableCombat = true,
- },
- },
- Command = {
- ["revive"] = {
- revive = true
- },
- },
- HealtReviveInjeredMode = 150, -- how many healt must be givved to the knocked out player
- identifier = 'license:', -- you can change to steam or other, we reccomande the license
- CoordsRespawn = vector3(330.52990722656,-594.82952880859,43.284061431885), -- Coords to respawn when the death count down end
- Using_fnx_killfeed = false, -- integration with our other release https://forum.cfx.re/t/free-kd-system-and-killfeed/4825010/4
- Using_mxm_kd_sistem = false, -- integration with our other release https://forum.cfx.re/t/free-kd-system-and-killfeed/4825010/4
- NotRpServer = {
- StartScreenEffect = true, -- screeen effect like black screen
- SetPlayerHealthRechargeMultiplier = true, -- life recharges faster
- TaskPlayAnimland_fall = true, -- animation from the dead
- SetEntityCompletelyDisableCollision = false, -- disable player collisions
- SetEntityVisible = false, -- whether the player should be visible or not
- SetEntityLocallyVisible = false, -- same as the previous one but for the client
- SetEntityAlpha = false, -- dont change
- SetBlockingOfNonTemporaryEvents = false, -- dont change
- },
- }
- -- Emergency Call Function for GCPHONE or ZTH_PHONE
- Config.StartEmergencyCall = function(coords)
- TriggerServerEvent("esx_addons_gcphone:startCall","ambulance","Aiuto sono ferito, Ecco la mia posizione",coords,coords)
- end
- -- Emergency Call Function for GKS Phone
- Config.StartGKSEmergency = function(myPos, GPS)
- ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
- local name = Races[2].firstname .. ' ' .. Races[2].lastname
- TriggerServerEvent('gksphone:gkcs:jbmessage', name, Races[1].phone_number, 'Emergency aid notification', '', GPS, 'ambulance')
- end)
- end
- -- Emergency Call Function for Quasar Phone
- Config.StartQuasarEmergency = function(playerPed, coords)
- TriggerServerEvent('qs-smartphone:server:AddJobMessage', {
- type = 'message',
- message = 'Injured person.'
- })
- Wait(300)
- TriggerServerEvent('qs-smartphone:server:AddJobMessage', {
- type = 'location',
- message = json.encode({
- x = coords.x,
- y = coords.y,
- })
- })
- end
- -- here you can configure your Text settings
- Config.TextSettings = function(txt)
- SetTextFont(4)
- SetTextScale(0.0, 0.5)
- SetTextColour(255, 255, 255, 255)
- SetTextDropshadow(0, 0, 0, 0, 255)
- SetTextDropShadow()
- SetTextOutline()
- SetTextCentre(true)
- SetTextEntry('STRING')
- AddTextComponentString(txt)
- DrawText(0.5, 0.8)
- end
- -- translate here in your language
- Lang = {
- ["start_call"] = "You called the doctors. You will be able to call the doctors back in 5 minutes",
- ["no_start_call"] = "You've already called the doctors, wait before you can call back",
- ["press_E_or_R"] = " Press ~b~[E]~w~ to revive yourself \nPress ~r~[R]~w~ to Respawnare",
- ["press_Call_and_respawn_temp1"] = " Press ~b~[E]~w~ to call for help, \nYou will be able to respawn in ",
- ["press_Call_and_respawn_temp_second"] = " seconds",
- ["press_Call_and_respawn_temp_min"] = " minutes",
- ["press_E_to_respawn"] = " Press ~r~[R]~w~ to respawn",
- ["no_player_nearby"] = "No players nearby",
- ["press_key_for_revive"] = "Press ~b~[E]~w~ to heal yourself with a bandage",
- ['no-bandage'] = "You don't have any bandages with you.",
- ['wait-bandage'] = "You will healed in a few seconds",
- }
Add Comment
Please, Sign In to add comment