esx_clip locale has not been set to 'en'.

James S

I made one post
Joined
Jul 5, 2018
Messages
4
First let me explain, I know there is no locale for english along with esx_clip. It is the easiest word to explain what I mean. However, you can go ahead and manually change the notification messages in the "esx_clip/client/cl_clip.lua" file.

Below I have translated the cl_clip.lua into english notifications for you if you wish to use them to save some time.

Code:
ESX          = nil

Citizen.CreateThread(function()
	while ESX == nil do
		TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
		Citizen.Wait(0)
	end
end)

RegisterNetEvent('esx_clip:clipcli')
AddEventHandler('esx_clip:clipcli', function()
  ped = GetPlayerPed(-1)
  if IsPedArmed(ped, 4) then
    hash=GetSelectedPedWeapon(ped)
    if hash~=nil then
      TriggerServerEvent('esx_clip:remove')
      AddAmmoToPed(GetPlayerPed(-1), hash,25)
      ESX.ShowNotification("You have used a clip")
    else
      ESX.ShowNotification("You do not have a weapon in your hand")
    end
  else
    ESX.ShowNotification("This type of ammunition is not suitable")
  end
end)

Link to the github - https://github.com/gregos1810/esx_clip
 
Thanks for this. This will be fixed on next server restart.
 
Last edited:

Latest posts

Back
Top