rcore.cz
  • rcore.cz
  • Store
  • Discord
  • Web administration
  • Our store
  • YouTube
  • 🐌CFX Auth system
    • CFX Auth system
    • Transfer script to another account
    • Error: You lack the required entitlement
    • Error: syntax error near '<\1>'
  • Server
    • Updating server
    • onesync
  • Administration
    • How to change IP
    • Forgot your password?
  • FAQ
    • General issues
    • Cannot verify license
    • Cannot hear any music
    • ECONNRESET: Unable to execute a query
  • paid resources
    • 🏑rcore_airhockey
      • How To Play
      • Spawning a Hockey Table
    • 💪rcore_armwrestling
      • How to place arm table
    • 🎴rcore_banners
      • How to Begin
      • How to Update
      • Common issues & solutions
      • Installation
      • Inventory Items
      • Configs
        • General
        • Billboards
        • Business
        • Permissions
        • Job
        • Config
      • Guides
        • How to change UI logo?
        • How to create new server banner?
        • How to create business?
        • How to buy billboard?
        • How to place banner?
        • Cannot see banners?
        • Expired images
      • API
    • 🏀rcore_basketball
      • Configure new hoop
    • 🏓rcore_beerpong
      • How to use
    • 📹rcore_bodycam
      • Integration
      • Anticheat
      • Recordings don't save
    • 🎳rcore_bowling
      • Configure new alley
    • 🎥rcore_cam
      • Integration
      • Anticheat
    • ⛺rcore_camping
      • Installation
      • Config
      • Consumable Beer
      • OX Inventory
      • Frameworks
      • API
    • 🎪rcore_carnival
      • Create new minigame
    • 🃏rcore_casino
      • Installing Maps
        • UncleJust Casino
        • DlcIplLoader
        • Gabz Casino
        • NoPixel Casino
        • K4MB1 Casino
        • rcore_casino_interior
        • Underground Casino Paleto
        • K4MB1 Enterable Diamond Casino
        • Patoche Casino
        • Clawles: Casino Los Santos
        • Molo Casino
        • Jurassic Jackpot Casino
      • Standalone Version
      • Custom Framework
      • Installing on QBCore
      • Installing on ESX
      • Installing Inventory Items
      • The Cashier
      • Society
      • Lucky Wheel & Podium Vehicle
      • Table Games
      • Slot Machines
      • Casino Bar
      • Inside Track
      • Translations
      • Discord Hook
      • MYSQL Info
      • CasinoControl (Exports)
      • Casino Job & Office
      • Changing Odds
    • 👕rcore_clothes
      • Dark theme
      • Adding a new clothes shop
      • Components
      • Restriction for certian job
      • Custom clothes price
      • Clothes blacklist / Whitelist
      • esx_accessories
      • qb_apartments
      • cui_character
      • API: Open outfits
      • API: Open clothes shop
    • 🎽rcore_clothing 🆕
      • How to begin
      • Installation
      • Migration
      • Configs
        • Main config
        • Price config
        • Shop config
        • Peds config
        • Undress clothes
      • FAQ
      • Admin mode
        • Modes
        • Image debugging
        • Stock management
      • Adding replace/addon clothes
      • Categorize clothing automatically
      • API
      • Troubleshooting
      • Integration
        • Multichar integration guide
        • esx_multicharacter
        • esx_multicharacter OLD
        • qb-multicharacter
        • crm_multichar
        • codem_multichar
        • okok_multichar
        • qbox_multichar
        • ESX vms_multichar
        • QB vms_multichar
        • qs-multicharacter
        • um_multichar
        • wais_multicharacter v2
        • zr_multichar
        • zsx_multicharacter
    • 💃rcore_dance
      • Installation
      • Config
      • FAQ
      • Troubleshooting
      • API
    • 📱rcore_dispatch
      • Config
      • Add alerts
      • Add jobs
      • Locales
      • Logs
      • Integrations
      • Framework
      • Voice and radio
    • 🔒rcore_doorlock
      • Installation
      • Configuration
      • Migration
      • Business
        • Configuration
        • Locksmith Example
      • Inventory Items
      • Keychain
      • API
    • 🍺rcore_drunk
      • How to place drink on table
      • Create new item drink
      • ox inventory
      • API
      • How to use
    • 🥚rcore_easter
      • Installation
      • Configuration
      • API
    • ⛽rcore_fuel
      • Installation
        • ESX
        • QBCore
      • Inventory
        • ESX
        • QBCore
        • ox_inventory
      • Config
        • New fuel station
        • Change fuel type for vehicle
        • Change fuel capacity for vehicle
        • Setting fuel station to be ownable
        • Wrong fuel type
        • Change gas price
      • Integrations
        • API
        • Vehicle keys integrations
        • Hud/Garage integration
      • Server
        • Commands
    • 🔫rcore_gangs
      • API
        • Client
        • Server
      • Integration
        • Framework
        • Inventory
        • Dispatch
      • Localization
      • Configuration
        • Custom gang zone
    • 🚙rcore_garage
      • qb-phone missing garages name
      • missing screenshots
    • 📙rcore_guidebook
      • Installation
      • Config
      • Data permissions
      • API
      • Themes
      • 📙V1 Docs
        • Installation
        • API
        • Themes
    • 🔫rcore_gunshop
      • QBCore Installation
      • ESX Installation
      • How to change pricing
      • How to enable sales of weapons
      • Enabling MK2 weapons on QBCore
      • Adding the ammunation job for QBCore
      • Adding the ammunation job for ESX
    • 🎯rcore_gunrange
      • Installation
      • API
      • Troubleshooting
      • Frequently Asked Questions
      • Gun Range Editor
    • 🏨rcore_hotel
      • How to add another hotel example
      • esx_inventoryhud
      • Quasar inventory
      • OX inventory
      • MF inventory
      • Custom wardrobe
    • 🧑rcore_identity
      • How to change date format
      • esx_kasharacter
    • 🟠rcore_job_blips
      • Installation
      • Configuration
      • Blip Setup
      • Group Setup
      • API
    • ⛳rcore_minigolf
      • Builder
      • Company
      • Config
    • 🚛rcore_missionpack_legal
      • Migrate from old version
    • 🚗rcore_pdm
      • Missing images
      • Blips on minimap
      • Vehicles in stock
      • Missing vehicle names
      • Edit the speed of the vehicle in UI
      • Boss menu + locations
      • Displayed vehicle in the shop
      • How to add a vehicle with a new category
      • QBCore
        • Import missing vehicles from qbcore to rcore_pdm
        • Job data for QBCore framework
        • Import vehicles from database to qbcore
    • 🏓rcore_pingpong
      • How To Play
      • Spawning a Pong Table
      • Match Settings
    • 🤽‍♀️rcore_pool
      • Anticheat
      • How to place pool table
    • 👮rcore_police
      • Installation
      • How to Update
      • Features
      • Inventory
      • Deployer
      • Configs
        • Main Config
      • API
        • Client
        • Server
    • ⛓️rcore_prison
      • Migration from V1
      • How to Begin
      • How to Update
      • Installation
      • Inventory items
      • Configs
        • Main Config
      • Guides
        • Deployer
        • Changing minigame for Cigarette packaging
        • Changing Prison jobs reward
        • Configuring Permissions
        • How to translate in-game panel
        • How to define own stats for Prison GYM?
        • How to define/change default Prisoner outfits?
        • How to define own Prison map?
      • Features
        • Prison Break
        • Solitary
        • Cigar packaging
        • Canteen
        • Dealer
        • Dashboard
        • Chair system
        • Prison Prolog
      • Integrations
        • Inventory
        • Inventory items
      • API
        • Client
        • Server
      • ⛓️V1 Docs
        • Config
        • Inventory
        • API
          • Client
          • Server
        • Locales system
        • Interiors presets
        • Camera prolog
        • Outfits
    • 📻rcore_radiocar
      • API
        • Radio item
        • Marker for buying radio
    • 📋rcore_report
      • Installation
      • API
      • Ace Permissions
      • Config
      • UI Config
      • Features
      • Console Logs
      • Custom Data
      • Responsivity
    • 🏪rcore_shops
      • Add new shop
      • How to add weapon
      • Hide blip on minimap / map
      • Restrict shop to certain job
    • 🔠rcore_shortcuts
      • API
      • Commands and Hotkeys
      • Permissions
      • Notifications
      • Limits
      • Styles
    • ✨rcore_spray
      • ESX instalation
      • QBCore instalation
      • OX Inventory instalation
      • How to add a new image
      • How to add a new font
      • Gang integration
      • Anticheat
    • 📈rcore_stats
      • Installation
      • Permissions
      • Configs
        • Main config
        • Performance
        • Units
        • Other
      • Translation
      • Changing Default Values
      • API
        • Integration
        • Delete
        • Other
    • 👹rcore_tattoos
      • Installation
      • Migrations
      • Add-on tattoos
      • Config
      • Custom Framework
      • Design
      • Tattoo config options
      • Tattoo permissions
      • Troubleshooting
      • API
      • Integrations
        • qb-gangs
      • Business update
        • Config
        • Simple Business
        • Business with jobs
        • Default settings
    • 📺rcore_television
      • How to add a new television
    • 🔧rcore_tuning
      • Editing your config
      • Configuring your framework
      • Job integration
      • Item integration
      • Editing tuning prices
    • 📋rcore_whiteboard
      • Whiteboard type & data
      • Position editor
      • API
      • FAQ
    • 🎁rcore_xmas
      • Installation
      • Configuration
      • Inventory Items
      • Snowball Damage
      • API
    • 📻xradio
      • API
      • Custom menu
      • Ox inventory
  • free resources
    • rcore_arcade
      • How to add msdos games
Powered by GitBook
On this page
  • Overview
  • Spawn points
  • Other
  • Job activities (Jobs)
  • Canteen
  • Interaction

Was this helpful?

  1. paid resources
  2. rcore_prison
  3. V1 Docs

Interiors presets

There you can find all informatios related to our interior presets.

Overview

-- Location: rcore_prison/data/presets/xxx.lua

In short overview, this interior preset system is handling all interaction & options used in our Prison system, which means that you can simply make own interior preset or use already defined ones.

By default there is interior template which is used along with rcore__prison__map.

Supporting GABZ, Uncle Just, Alcatraz interiors by default.

Our interior preset system is offering to change anything you like in terms of:

  1. Spawn points

  2. Other (coords)

  3. Job activities for Prisoners

  4. Canteen

  5. Interaction (npc, marker, type, position)

Spawn points

Spawn points are used for spawning prisoners inside Prison cells, if script detect that are all cells are occupied by some Prisoner, new prisoner will be teleport at prisonYard position as fallback.

You dont need to define any spawnPoints, but its recommended for better immersion.

Usage:

-- Note: You dont need to define cellId, its just optional.
-- Note The format is strict!

spawnPoints = {
    {
        coords = vec3(1713.704834, 2571.923340, 50.189816),
        cellId = 1,
    },
    {
        coords = vec3(1713.704834, 2571.923340, 50.189816),
        cellId = 1,
    },
}

Other

There are few coords, which you can change as specific for releasePos, outfitMenu, prisonYard.

-- Format: (x, y, z, heading)

releasePos = vec4(1847.230469, 2587.085693, 45.672638, 269.0),
outfitMenu = vec4(402.704010, -996.795166, -99.000252, 180.0),
prisonYard = vec4(1774.836914, 2552.014404, 45.564976, 74.0),  
Variable
Desc

releasePos

Release position, when Prisoner has finished his time in Prison.

outfitMenu

Position where new Prisoner is selecting his outfit.

prisonYard

Position when new Prisoner is teleported, when not any cells are free.

Job activities (Jobs)

Variable
value
Desc

jobId

1

Unique number value for specific activity

activeLimit

1

How many prisoners, can do this activity at once.

reward.type

('reduceSentece / credits')

You can specify what is reward when prisoners in specific activity finished their job (giving credis or reducing jail time)

reward.amount

value (int)

How much you like to gave to prisoners for specific job.

requiredDelivery

1

How many tasks needs to be acomplished for finishing current activity

text

'JOB_CLEAN_YARD_MISSION_TEXT'

Mission text for current activity, using lang text entry.

cooldown

30 * 1000 (30 sec)

When Prisoners can do this activity again?

name

Clean Yard

What the activity name?

type

clean_yard

Internal activity type, that will handle specific job.

drawmarker.opaciy

100

Option to change drawmarker opacity.

points

array of vec3

Define your array of coords for specific activity

Canteen

Define what type of items are going to be in Canteen

label
cost
itemName
Desc

Sludgie

50

sludgie

label - name in menu cost - price in credis itemName - name of item in your inventory

Canteen = {
    {
        label = 'Sludgie',
        cost = 50,
        itemName = 'sludgie'
    },
}

Interaction

Define positions of interaction points and other specific things.

-- Locations: rcore_prison/configs/interiors.lua ['interaction']
-- Example interaction point with NPC (canteen type)

{
    npc = {
        model = 's_m_m_prisguard_01',
        heading = 90.0,
    },
    marker = {
        renderState = false,
        rgba = vec4(255, 255, 255, 255),
        size = vec3(0.5, 0.5, 0.5),
        type = 0
    },
    coords = vec3(1712.886108, 2573.232422, 45.555862),
    type = 'canteen',
},

Blips for interaction

Option to define blips for specific interactions.

    blip = {
        state = Prison.RenderNPCBlips,
        name = 'Cigarett production',
        sprite = 214,
        scale = 0.6,
        color = 0,
    },
    marker = {
        renderState = false,
        rgba = vec4(255, 255, 255, 255),
        size = vec3(0.5, 0.5, 0.5),
        type = 0
    },
    coords = vec3(1712.886108, 2573.232422, 45.555862),
    type = 'canteen',
Variable
Param
Desc

npc.model

's_m_m_prisguard_01'

Define model of NPC

npc.heading

'90.0

Define heading of specific NPC

marker.renderState

true/false

Should interaction use marker

coords

vec3

Position of npc / interaction point

type

string

internalType (action)

Would you like to disable npc on interaction?

{
    npc = nil
    marker = {
        renderState = false,
        rgba = vec4(255, 255, 255, 255),
        size = vec3(0.5, 0.5, 0.5),
        type = 0
    },
    coords = vec3(1712.886108, 2573.232422, 45.555862),
    type = 'canteen',
},

Telephone booth

Require third-party phone to be connected with Prison callSystem.

{
    npc = nil
    marker = {
        renderState = true,
        rgba = vec4(255, 255, 255, 255),
        size = vec3(0.5, 0.5, 0.5),
        type = 0
    },
    booth = {
        number = 1000,
    },
    coords = vec3(1765.303589, 2529.866455, 45.796360),
    type = 'booth',
}    
PreviousLocales systemNextCamera prolog

Last updated 1 year ago

Was this helpful?

There you can change all stuff related to specific activities on Prison yard or define own?

Option to define telephone booth, number needs to be unique!

⛓️
⛓️
👍
👍