It is a script to be able to deliver backpacks to users, and users from a menu can carry the backpacks that they have available, when putting on a backpack they will obtain a certain extra weight that can be configured in the config script
Requirements:
es_extended
With compatible
es_extended 1.1
es_extended v1final
es_extended legacy
Performance
Commands
- /openbag | This command allows you to open the menu to see the available backpacks
- /initbag ID | This command allows to create the player structure in the database
- /givebag ID NAME_BAG ID_MODEL ID_COLOUR | This command allows you to deliver the backpack to the player.
Once the backpack is delivered, the player must restart FIVEM in order to see the available backpacks they have.
How to block access to the backpack with the resource "esx_skin"
Look for this code in client/main.lua
table.insert(elements, data)
and replace it with this:
if _components[i].name ~= "bags_1" and _components[i].name ~= "bags_2" then
table.insert(elements, data)
end
and that would be enough.
|---------------------------------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | Server:300 Client:100 |
| Requirements | es_extended |
| Support | Yes |