Setting up cinema

1

Go to config.lua

You can easily configure or add a new cinema to our script by accessing the following directory: brnx-cinemasystem/modules/shared/config.lua. This file provides all the necessary options for customization, ensuring a seamless integration tailored to your needs.

2

Create cinema

To add a cinema, navigate to the brnx-cinemasystem/modules/shared/config.lua file and follow the instructions below for seamless customization.

brnx-cinemasystem/modules/shared/config.lua

-- Add film
config.films = {
    ['standalone'] = {
        { 
            name = 'Bluen The Return',
            minutes = '15',
            img = 'url',
            synopsis = [[
                The best shop
            ]],
            schedules = {
                ['STANDALONE01'] = { { hour = '12:00' } }, -- [ROOM]
            },
            price = 5000,
            
            url = 'url', -- YOUTUBE LINK
            volume = 50.0
        },    
    }
}

-- Add blip in map
config.blips = {
    { 
        coord = vector3(0,0,0),
        sprite = 135, 
        color = 1, 
        scale = 0.7, 
        name = 'Cinema Bluen' 
    },
}

-- Create totem
config.totems = {
    { coord = vector3(0,0,0), method = 'film', cinema = 'standalone' },
}

After following the steps above, you will also need to configure the cinema room in the brnx-cinemasystem/modules/shared/rooms.lua file. Without this step, the script will not function properly.

brnx-cinemasystem/modules/shared/rooms.lua
Rooms = {
    ['STANDALONE01'] = PolyZone:Create({
            vector2(0,0),
            vector2(0,0)
        }, 
        {
            debugGrid=config.debug,
            --minZ = 0.0,
            --maxZ = 0.0,
            data = {}
        }
    ),
}

Exits = {
    ['STANDALONE01'] = vector4(0, 0, 0, 0) -- REQUIRED
}

How to create a polyzone?

-- Command used in the video
RegisterCommand('vec2', function(source)
    local coords = GetEntityCoords( GetPlayerPed(source) )
    local writeVec2 = tostring( vec2(coords.x,coords.y) )
    print(writeVec2)
end)

brnx-cinemasystem/shared/config.lua
config.screen = {
    hash = GetHashKey('v_ilev_cin_screen'),
    replace = 'cinscreen'
}

Last updated