Giter VIP home page Giter VIP logo

msk_backpack's Introduction

Not longer Supported

msk_backpack

[ESX] Multiple Backpack Items

Description

  • You can use the bag Item, then you get nobag Item and a Bag will be added to your Ped.
  • If you use nobag Item then then the Bag will be removed from your Ped an you get the bag Item.
  • Open own Bag with Command
  • Steal Bag from closest Player with Command
  • Works with Character Names not FiveM Names

Commands

Only if Config.BagInventory = 'secondary'!

  • /openbag - Open your own Bag
  • /stealbag - Open the Bag from Player next to you

Exports

You can use the exports clientside AND serverside

-- Returns the itemName saved in database or nil if the player don't has a Bag
local hasBag = exports.msk_backpack:hasBag(player)

Example

exports.msk_backpack:hasBag({source = playerId})
exports.msk_backpack:hasBag({identifier = playerIdentifier})
exports.msk_backpack:hasBag({player = xPlayer})

Requirements

Optional

Chezza Inventory only necessary if Config.BagInventory = 'secondary'!

Support for esx_ambulancejob

This removes the Backpack after death, resets the inventory space and removes all items inside

Go to /client/main.lua and search for function RespawnPed(ped, coords, heading).

Replace the function with this code:

function RespawnPed(ped, coords, heading, isDied)
  SetEntityCoordsNoOffset(ped, coords.x, coords.y, coords.z, false, false, false)
  NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, heading, true, false)
  SetPlayerInvincible(ped, false)
  ClearPedBloodDamage(ped)

  TriggerServerEvent('esx:onPlayerSpawn')
  TriggerEvent('esx:onPlayerSpawn')
  TriggerEvent('playerSpawned')

  if isDied then
		TriggerServerEvent('msk_backpack:setDeathStatus', true)
	end
end

Above this you find: function RemoveItemsAfterRPDeath().

Search for: RespawnPed(PlayerPedId(), RespawnCoords, ClosestHospital.heading)

Replace it with this: RespawnPed(PlayerPedId(), RespawnCoords, ClosestHospital.heading, true)

My other Scripts

Paid

Free

msk_backpack's People

Contributors

mauricehandwerker avatar musiker15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

msk_backpack's Issues

ox inventory

hello, does the bag work with ox_inventory? because I did not succeed thank you

Hello buddy

ou hello buddy again with nice stuff here nice to see somthing new :slight_smile:

is it possible to make when you equip the baackpack that you can carry more stuff (weight) like normal you can carry without backpaack 35kg and with backpack 50kg and to make more backpacks with different weight

[Plugin] required bag for search another bag

when I check another player’s bag he asks me to have a bag equipped and won’t let me see his bag. That is, I need to have a bag equipped if I want to search another player’s bag. that would be wrong

'expand' or 'secondary'

If I read that correctly, if I use Config.BagInventory = 'secondary' -- 'expand' or 'secondary', the one next to inventory should be opened, which doesn't happen

Wenn ich das richtig gelesen habe soll wenn ich Config.BagInventory = 'secondary' -- 'expand' or 'secondary' das ein neben inventory mit aufgemacht werden was aber nicht passiert

Skin Issue with expand inventory

Es gibt ein Problem mit der Tasche und dem Cheeza V4 man bekommt wenn man die Tasche angelegt hat und diese wieder ablegen möchte , kommt immer die Meldung so lange sich items in der Tasche befinden kann man sie nicht ablegen . Aber ich habe keine Items in der Tasche

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.