Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I give help #4

Open
Warlif opened this issue Nov 17, 2021 · 0 comments
Open

I give help #4

Warlif opened this issue Nov 17, 2021 · 0 comments

Comments

@Warlif
Copy link

Warlif commented Nov 17, 2021

Hey ! I give a little modification to the script for those who have a problem with ESX compatibilty.

So for the blips ->

config.lua

                    Blip = {
		coords = vector3(-435.57, -336.6, 34.91), <--- A changer pour adapter a votre hôpital
		sprite = 61,
		scale  = 1.2,
		color  = 2

	},

client/main.lua

-- Create blips
Citizen.CreateThread(function()
for k,v in pairs(Config.Hospitals) do
local blip = AddBlipForCoord(v.Blip.coords)

	SetBlipSprite(blip, v.Blip.sprite)
	SetBlipScale(blip, v.Blip.scale)
	SetBlipColour(blip, v.Blip.color)
	SetBlipAsShortRange(blip, true)

	BeginTextCommandSetBlipName('STRING')
	AddTextComponentSubstringPlayerName(_U('blip_hospital'))
	EndTextCommandSetBlipName(blip)
end

end)


locales/fr

['blip_hospital'] = '⛑ Hôpital', <------------- A modifier selon vos envies/besoin


Modification de la commande /revive pour ESX1.2 sans essential mod

server/server.lua -> remplacer de la ligne 223 a 233 par

ESX.RegisterCommand('revive', 'admin', function(xPlayer, args, showError)
args.playerId.triggerEvent('esx_ambulancejob:revive')
end, true, {help = _U('revive_help'), validate = true, arguments = {
{name = 'playerId', help = 'The player id', type = 'player'}
}})

Voilà , have fun !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant