Skip to content

FenixsGame/bcc-portals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BCC Portals

Description

Looking for fast and convenient travel in your server? Our script has got you covered! With multiple ticket sellers to choose from and the option to add more, you'll have access to quick transportation to your desired location. Plus, with customizable shop hours and access restrictions based on job and job grade, you can tailor the script to fit your needs perfectly.

Features

  • Buy passage to a location from a ticket seller
  • Cash or gold may be used for payments
  • Shop hours may be set individually for each shop or disabled to allow the shop to remain open
  • Shop blips are colored and changeable per shop location
  • Blips can change color reflecting if shop is open, closed or job locked
  • Shop access can be limited by job and jobgrade

Configuration

Settings can be changed in the config.lua file. Here is an example of one shop:

    annesburg = {
        portName = "Annesburg Portal", -- Name of Shop on Menu Header
        promptName = "Annesburg Portal", -- Text Below the Prompt Button
        blipAllowed = true, -- Turns Blips On / Off
        blipName = "Annesburg Portal", -- Name of the Blip on the Map
        blipSprite = 784218150, -- 784218150 = Default
        blipColorOpen = "BLIP_MODIFIER_MP_COLOR_32", -- Shop Open - Blip Colors Shown Below
        blipColorClosed = "BLIP_MODIFIER_MP_COLOR_10", -- Shop Closed - Blip Colors Shown Below
        blipColorJob = "BLIP_MODIFIER_MP_COLOR_23", -- Shop Job Locked - Default: Yellow - Blip Colors Shown Below
        npc = {x = 2941.59, y = 1273.58, z = 43.64, h = 237.13}, -- NPC and Shop Blip Positions
        player = {x = 2942.39, y = 1272.97, z = 44.64, h = 52.18}, -- Player Teleport Position
        distPort = 2.0, -- Distance from NPC to Get Menu Prompt
        npcAllowed = true, -- Turns NPCs On / Off
        npcModel = "s_m_m_sdticketseller_01", -- Sets Model for NPCs
        allowedJobs = {}, -- Empty, Everyone Can Use / Insert Job to limit access - ex. "police"
        jobGrade = 0, -- Enter Minimum Rank / Job Grade to Access Shop
        portHours = false, -- If You Want the Shops to Use Open and Closed Hours
        portOpen = 7, -- Shop Open Time / 24 Hour Clock
        portClose = 21, -- Shop Close Time / 24 Hour Clock
        outlets = { -- label is the name used in the body of the menu / currencyType = "cash" or "gold" / DO NOT CHANGE "location"
            { label = "Armadillo",   location = "armadillo",  currencyType = "cash", buyPrice = 100 },
            { label = "Blackwater",  location = "blackwater", currencyType = "cash", buyPrice = 80  },
            { label = "Rhodes",      location = "rhodes",     currencyType = "cash", buyPrice = 40  },
            { label = "Strawberry",  location = "strawberry", currencyType = "cash", buyPrice = 80  },
            { label = "Saint Denis", location = "stdenis",    currencyType = "cash", buyPrice = 40  },
            { label = "Tumbleweed",  location = "tumbleweed", currencyType = "cash", buyPrice = 100 },
            { label = "Valentine",   location = "valentine",  currencyType = "cash", buyPrice = 60  },
            { label = "Van Horn",    location = "vanhorn",    currencyType = "cash", buyPrice = 20  },
        }
    },

Dependencies

Installation

  • Ensure that the dependancies are added and started
  • Add bcc-portals folder to your resources folder
  • Add ensure bcc-portals to your resources.cfg

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%