Setting up cinema
Create cinema
To add a cinema, navigate to the brnx-cinemasystem/modules/shared/config.lua
file and follow the instructions below for seamless customization.
If you don't have the Ten Cent or Cinema Doppler maps, you will need to configure the entire script manually. However, if you do have these maps, there's no need to worry, as both are already pre-configured. You can still edit them if needed. Follow the examples below to create a new cinema.
-- 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' },
}
The movie schedules follow real-world time, not in-game time.
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)
To ensure the screen works correctly, you need to define the screen's hash and its YTD replacement file in the script's configuration file, located at brnx-cinemasystem/modules/shared/config.lua
. Additionally, make sure the screen is inside the Polyzone, as the script won't be able to find it otherwise.
config.screen = {
hash = GetHashKey('v_ilev_cin_screen'),
replace = 'cinscreen'
}
Last updated