Setting up cinema
Create cinema
To start creating a new cinema, you need to go to the file brnx-cinemasystem/modules/config/config.lua, and after that, follow the instructions below.
If you don't have the Ten Cent, Cinema Doppler or Drive-In 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.
To begin, you need to create an ID to serve as your cinema's identifier, as well as the cinema's name. Follow the example below.
config.cinemas = {
{ id = 'newcinema', name = 'New Cinemaa' }
}It is necessary to configure your cinema screen. You need to get the screen prop’s hash and its replace-texture and set it up exactly like in the example below. If you don’t do this correctly, the movie videos will not work.
config.screens = {
['newcinema'] = {
hash = modelHash,
replace = replaceName
}
}After completing all the steps above, you need to create the sessions, meaning the rooms where the movies will play. To do this, PolyZone is required. Check the example below and follow the instruction video.
Rooms = {
--[[ EXAMPLE
['TEN01'] = PolyZone:Create(
{
-- Right 1
vector2(431.3143, -736.444),
vector2(431.011, -736.6022),
vector2(430.8264, -736.9187),
-- Left 1
vector2(408.7516, -736.9187),
vector2(408.6461, -736.6154),
vector2(408.2769, -736.444),
-- Left 2
vector2(408.9758, -691.8198),
-- Right 2
vector2(430.7473, -691.3318)
},
{
debugGrid=config.debug,
minZ = 0.0,
maxZ = 28.0,
data = {}
}
),]]
['NEWCINEMA01'] = PolyZone:Create({
vector2(0.0,0.0),
vector2(0.0,0.0)
},
{
debugGrid=config.debug,
minZ = 0.0,
maxZ = 0.0,
data = {}
}
),
}
Exits = {
['NEWCINEMA01'] = vector4(0, 0, 0, 0) -- REQUIRED
}
Cinemas = {
['NEWCINEMA01'] = 'newcinema'
}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)Now it is necessary to create the totems, so that players can buy movie tickets.
config.totems = {
enabled = true,
locations = {
{ coords = vector3(0.0, 0.0, 0.0), distance = 1.2, config = 'newcinema' },
}
}This isn't mandatory, but you can also add your cinema to the game map.
config.blips = {
{
coord = vector3(0.0,0.0,0.0),
sprite = 135,
color = 29,
scale = 0.7,
name = 'Cinema | New Cinema'
}
}Remember, the movies do not follow the in-game time; they are based on real-life time. To make things easier for players, the tablet where you buy the tickets shows the real-life time. And when you are about to enter a session, it also shows the session times and the current time.
Create films
First, add your license to the tablet's permissions to gain access, or remove the permissions and leave it completely open.

-- This way you allow anyone to tamper with the control panel.
canAcessThePanel = function(source)
return true
endWhen setting the times in the room, you need to place commas between each time. Example: 12:00, 13:00. The comma can be attached to the number or separated, but there must always be a comma between the times.
The time must be in 24-hour format. So check the times on this website to convert 12-hour time into 24-hour time: https://www.lsoft.com/resources/24hours.asp
Last updated