Page cover

πŸ›’Pawnshop Locations

  • Adding more pawn shop locations is very simple via Config.Pawnshops

  • Define the location for the shop in the coords field

  • If you want a ped to spawn ensure you set usePed to true and then define which model you want to spawn otherwise it will spawn a circle zone to target

  • Choose which payment type you would like for that specific pawnshop either cash, bank or dirtycash

  • If using dirty cash ensure you have the correct item name assigned in addMoney function in pawnshops_server.lua

Config.Pawnshops = {
    ['custom_pawnshop'] = {
        name = 'Custom Pawn Shop Name', -- pawnshop name to be display as the menu header
        coords = vector4(-1459.47, -413.96, 35.74, 171.06), -- where to spawn the ped
        usePed = true, -- set to true to spawn a ped instead of a target cicle zone
        model = 'a_m_m_business_01', -- ped model to spawn
        money = 'cash', -- type of payment received from selling here use cash or bank or dirtycash (if using dirty cash ensure you have the item in your items.lua)
        owned = {
            playerOwned = true, -- is this shop player owned
            owner = 'SWG17640', -- citizen id
            stashLoc = vector3(-1455.93, -414.11, 35.63), -- coords to create circlezone for counter stash where players put their items they want sell to the owner
            marketPlaceLoc = vector3(-1452.84, -412.16, 35.76), -- coords to create the circlezone for the market place where shop owners sell their products listed below in itemsAllowed
        },
        blip = {
            enabled = true, -- enable or disable the blip for this pawnshop
            id = 58, -- blip id
            colour = 5, -- blip colour
            scale = 0.6, -- blip scale
            name = 'Pawn Shop' -- blip name
        },
        timers = {
            enabled = false, -- set to false to be open 24/7
            open = 8, --opening hour
            close = 18, -- closing hour
        },
        itemsAllowed = { -- define items that are allowed to be sold at this pawnshop or makret place if its player owned
            ['lockpick'] = { price = 25, ownedPrice = 50, },
            ['phone'] = { price = 150, ownedPrice = 250,  },
        },
    },

  • To set a player owned pawnshop you must enabled playerOwned to true and then define the relevant information required ( citizen id, stashLoc and marketPlaceLoc )

  • owner must be the citizen id of the player

  • stashLoc must be a vector3 location for where the counter is located

  • marketPlaceLoc must be a vector3 location for where the market place selling menu is located

owned = {
    playerOwned = true, -- is this shop player owned
    owner = 'SWG17640', -- citizen id of the player that owns the store
    stashLoc = vector3(-1455.93, -414.11, 35.63), -- coords to create circlezone for counter stash where players put their items they want sell to the owner
    marketPlaceLoc = vector3(-1452.84, -412.16, 35.76), -- coords to create the circlezone for the market place where shop owners sell their products listed in itemsAllowed for that pawnshop
},

  • To use blips for the pawnshops set enabled to true and then define the relevant information

  • blip info can be found here

blip = {
    enabled = true, -- enable or disable the blip for this pawnshop
    id = 58, -- blip id
    colour = 5, -- blip colour
    scale = 0.6, -- blip scale
    name = 'Pawn Shop' -- blip name (set these to the same name to group them up)
},

  • To set store opening and closing times ensure you have set enabled to true and then define the opening and closing times ( this is in a 24 hour clock format)

timers = {
    enabled = true, -- set to false to be open 24/7
    open = 8, --opening hour
    close = 18, -- closing hour
},

  • To add items that can be sold at that pawnshop you must define them in itemsAllowed

  • The key is the item name this must be in your items.lua

  • The price is the value of that item PER UNIT if being sold at a NON PLAYER OWNED

  • The ownedPrice value is the value of that item PER UNIT if being sold from the owner at a PLAYER OWNED STORE

  • For player owned stores set this value slightly higher so the store makes a profit

itemsAllowed = { -- define items that are allowed to be sold at this pawnshop or makret place if its player owned
    ['lockpick'] = { price = 25, ownedPrice = 50, },
    ['phone'] = { price = 150, ownedPrice = 250,  },
},

Last updated