[Release][ES] Weapon Store [v1.1]

eheh, yeah just discovered this FiveM thing 1 week ago. At the beginning I had no idea what i was doing. But now this is pretty easy once you get the events working.

1 Like

are you going to add to buy health and armor? and also buy modifications for weapons?

the ammu nation doesnt work i have placed the 1 command and 2 funciton in classes/player.lua
 i dont have error in console but the shop doesnt work

Do you see the blip on the map ? Can you enter the shop and select a weapon ?

I see the blip orignal (ceux de es_freeroam)

ca ne fonctionne pas non plus pour moi j’ai le magasin mai les arme ne spawn pas.

It does not work either for me I may store the weapon does not spawn.

quelqu’un a rĂ©ussi a avoir les arme ?

Someone managed to get the gun?

Please, don’t use this fix
 All you need to do is add the 2 functions a mentioned in the first post.

For those who still don’t believe me, here is the player.lua that I use :
player.lua (2.7 KB)

My server works fine with it and at least 1 other fresh installed one also works.

work fine with the modif in player.lua and frrst post

now i need to save in the DB x)

I use hoegarden31 fix and everything works.
Thank you for not using the temporary fix I posted this morning.

Can be when give all the file with the new modiffication it would go?

Thanks, It works, but why after 3 buying it no longer works?

Thanks it works perfectly, now more than waiting for the Db so we can save the weapons.

2 Likes

Someone could share the files please modify? I tried everything but it did not work.

Look at the TUTO since the beginning, it has all picked up properly with the fixes not need to go into the comments pages. Just go back to the main tutorial and follow it from A to Z

2 Likes

Besides small question, you’re blips are default colorless, how do we put them in color?

{title="Blip name displayed", colour=xx , id=xx , x= , y= , z= }

Yes but put it in the script of es_weashop

function ShowWeashopBlips(bool)
	if bool and #weashop_blips == 0 then
		for station,pos in pairs(weashop_locations) do
			local loc = pos
			pos = pos.entering
			local blip = AddBlipForCoord(pos[1],pos[2],pos[3])
			-- 60 58 137
			SetBlipSprite(blip,110)
			BeginTextCommandSetBlipName("STRING")
			AddTextComponentString('Armurerie')
			EndTextCommandSetBlipName(blip)
			SetBlipAsShortRange(blip,true)
			SetBlipAsMissionCreatorBlip(blip,true)
			table.insert(weashop_blips, {blip = blip, pos = loc})
		end

I want to put a setblip color for example but in this code so that all the blips are of color.

1 Like

I don’t know for the colors. For now I use the default ones.