Skip to content

Commit

Permalink
Update 1.0.4 - Fixed the new configs errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhaddil committed Oct 19, 2024
1 parent 786d4f8 commit 4299b89
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ end

CreateThread(function()
for k, v in pairs(Config.Locations["insurances"]) do
TargetingBoxZone("insurances" .. k, v, Config.ZoneSize, Config.ZoneHeight, Config.ZoneDepth,
TargetingBoxZone("insurances" .. k, v, 3.5, 2, 2,
{
type = "client",
icon = Config.TargetIcon,
Expand Down
17 changes: 7 additions & 10 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@ Config.UseDiscounts = true -- Setting this to true allows players (with specifie
Config.CheckInsuranceCommandJob = { "ambulance" } -- List of jobs allowed to use the command to check insurance status.
Config.DiscountInteractionDistance = '3.0' -- The maximum distance at which players can interact with another player to apply discounts.

Config.PeriodicallyDeleteInsurance = '3600000' -- The interval (in milliseconds) at which expired insurances will be cleaned from the database.
Config.PeriodicallyDeleteInsurance = 3600000 -- The interval (in milliseconds) at which expired insurances will be cleaned from the database.

Config.TargetIcon = 'fa fa-clipboard' -- The icon used for the targeting box when interacting with insurance locations.
Config.ZoneLabel = 'Seguros Médicos' -- The label displayed for the insurance interaction zone.
Config.ZoneSize = '3.5' -- The size of the interaction zone for ox_target.
Config.ZoneHeight = '2' -- The height of the interaction zone for ox_target.
Config.ZoneDepth = '2' -- The depth of the interaction zone for ox_target.

Config.PedModel = 's_m_m_doctor_01' -- The model used for the insurance NPCs.
Config.PedSpawnCheckInterval = '5000' -- The interval (in milliseconds) at which the script checks if insurance NPCs need to be spawned.
Config.PedInteractionDistance = '2.0' -- The distance at which players can interact with the insurance NPCs.
Config.PedModel = "s_m_m_doctor_01" -- The model used for the insurance NPCs.
Config.PedSpawnCheckInterval = 5000 -- The interval (in milliseconds) at which the script checks if insurance NPCs need to be spawned.
Config.PedInteractionDistance = 2.0 -- The distance at which players can interact with the insurance NPCs.

Config.BlipLabel = 'Seguros Médicos' -- The label displayed for the blip on the map, indicating the location of medical insurance services.
Config.ShowBlip = true -- Enable or disable the display of the blip on the map. If 'true', the blip will be shown; if 'false', it will be hidden.
Config.BlipSprite = '408' -- The sprite ID for the blip, determining its appearance on the map.
Config.BlipScale = '0.8' -- The scale of the blip on the map.
Config.BlipColour = '0' -- The color of the blip on the map.
Config.BlipSprite = 408 -- The sprite ID for the blip, determining its appearance on the map.
Config.BlipScale = 0.8 -- The scale of the blip on the map.
Config.BlipColour = 0 -- The color of the blip on the map.

Config.AccessDeniedTitle = 'Acceso Denegado' -- The title displayed in notifications when access to a feature is denied.
Config.AccessDeniedMessage = 'No tienes el trabajo adecuado para acceder a esta función.' -- The message displayed in notifications when access to a feature is denied.
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lua54 'yes'

author 'Muhaddil'
description 'Simple Medical Insurance Script'
version 'v1.0.3'
version 'v1.0.4'

shared_script 'config.lua'
client_script 'client.lua'
Expand Down
1 change: 1 addition & 0 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ end
Citizen.CreateThread(function()
while true do
Wait(Config.PeriodicallyDeleteInsurance)
print('Limpieza de seguros expirados.')
cleanExpiredInsurances()
end
end)
Expand Down

0 comments on commit 4299b89

Please sign in to comment.