Card with metadata

Welcome to Card with metadata

This part will deal with metadata and for this you need to have a system that supports metadata elements. Below I will mention the inventories that are compatible with this feature.

  • qs-inventory

  • qb-inventory

  • ox_inventory

  • core_inventory

If you do not have them, ignore this step. Otherwise, here you can set the price for credit card creation and even spot exclusively for credit card creation if you wish.

How to activate this function?

Config.Metadata = true 

Well in your config.lua look for the Config.Metadata section, use a true or false. If you keep this system active only if you use a compatible inventory, you can make use of all its functions within the resource, you can make use of the ATMs and be careful, if your card is stolen and they know your password, they can steal money, keep a secure password for this system.

Config.Metadata = false

But if you keep it disabled, you will not be able to use credit cards or ATMs, since you lack a card because it can only be used through metadata, and the function you will have is only your personal bank accounts.

If you have the metadata system active

You will be able to configure the price of the card and an optional configuration was added, where if you want to create a card creation site outside the banks, you can add the sports you want, we put an example code of this configuration.

Config.CreateCardEverywhere = false -- Can you create cards in all banks or only in the configured spots?
Config.CreateCard = {               -- Spots to create cards (optional)
    {
        coords = vec3(143.26641845703, -1042.5906982422, 29.367889404297)
    },
    --add more spots
    --{
    --    coords = vec3(143.26641845703, -1042.5906982422, 29.367889404297)
    --}
}

This spot is not necessary, it is optional, as you can use the bank to generate cards, this is only if you want to add more sites to create a card.

Last updated