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

Getting error #1

Open
FurmaZ opened this issue Dec 16, 2022 · 2 comments
Open

Getting error #1

FurmaZ opened this issue Dec 16, 2022 · 2 comments

Comments

@FurmaZ
Copy link

FurmaZ commented Dec 16, 2022

image

@GravityScriptsV2
Copy link

Hey man, I will look into this and apply a fix when I figure out what is going on!

@lak1z-azk
Copy link

lak1z-azk commented Nov 29, 2023

Wanted to make PR, but seems permissions are denied :( so Make sure you fix the lines :

43 TriggerClientEvent('QBCore:Notify', src, 'Vous n\'avez pas de munitions !', 'error')
52 TriggerClientEvent('QBCore:Notify', src, 'Vous ne pouvez pas utiliser cette arme pour prendre des otages !', 'error')
77 TriggerClientEvent('QBCore:Notify', src, 'Personne aux alentours !', 'error')

and replace them with

43 QBCore.Functions.Notify('You do not have ammunition!', 'error')
52 QBCore.Functions.Notify('You cannot use this weapon to take hostages!', 'error')
77 QBCore.Functions.Notify('No one nearby!', 'error')

If you encounter issue, that it says You cannot use this weapon to take hostages.

Remove all lines from 4 to 16
local hostageAllowedWeapons = { "weapon_pistol", "weapon_combatpistol", "weapon_pistol50", "weapon_snspistol", "weapon_vintagepistol", "vweapon_heavypistol", "weapon_revolver", "weapon_ceramicpistol", "weapon_navyrevolver", "weapon_marksmanpistol", "weapon_snspistol_mk2", "weapon_pistol_mk2", "weapon_machinepistol" }

Which should look like that:

local hostageAllowedWeapons = {
	
	
}

Also make sure you have renamed the texts in line:
223 DrawText3D(playerCoords.x,playerCoords.y,playerCoords.z,"[G] libérer, [H] Abattre")

to

223 DrawText3D(playerCoords.x,playerCoords.y,playerCoords.z,"[G] Release, [H] Kill")

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

3 participants