Fivem Gang System (script)

i did everything i put my steam hex in there it says invalid permissions help?

please send me config file and server cfg screeen shot

1 Like

can someone help me ?

this error is not problem
just change resource name to gang

ok thanks I test that times

have now created a gear only you do not see any blips or dots

you should create gang and add coords for that gang

gang and coords were added but they are not there

they are also in the database

are you add expire day for that gang ?
and are you member of gang ?

ahhh have my error recognized was the expire day thanks for the help

1 Like

Hey i have a “small” problem with canCarryItem…
i cant withdraw items from the inventory (attempt to call a nil value (field canCarryItem)

i have an older esx version BUT i have the canCarryItem in my es_extended…

self.canCarryItem = function(name, count)
		return true
	end

like that

you can comment if and end of if like this :

		if itemType == 'item' then
			--if XPlayer.canCarryItem(itemName, amount) then
				XPlayer.addInventoryItem(itemName, amount)
				return true
			--end
		elseif itemType == 'account' then

in line 175 of esxBaseFunction.lua

That’s a bad practice. You should use block comments to comment out the whole logic, instead, like this:

		if itemType == 'item' then
			--[[if XPlayer.canCarryItem(itemName, amount) then
				XPlayer.addInventoryItem(itemName, amount)
				return true
			end]]
		elseif itemType == 'account' then

in which file can you change where to search people ? at the moment it is on F5

no no no

				XPlayer.addInventoryItem(itemName, amount)
				return true

this two line should run

in gangAction.lua file

Ah, right, I took that way out of context. Still, there’s a mistake in your script on top of the one I tried to suggest:

		if itemType == 'item' then
			--if XPlayer.canCarryItem(itemName, amount) then
				XPlayer.addInventoryItem(itemName, amount)
				return true
			--end
		if itemType == 'account' then

(In short, you start the additional checks with an elseif, which may or may not work depending on the rest of the script)

2 Likes

Thanks

anybody on here getting “invalid permissions” make sure you are using your steam HEX, not the steam 64 id or anything else. I finally got mine working after using the HEX

2 Likes