Setting up cinema
2
Create cinema
config.cinemas = {
{ id = 'newcinema', name = 'New Cinemaa' }
}config.screens = {
['newcinema'] = {
hash = modelHash,
replace = replaceName
}
}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)config.totems = {
enabled = true,
locations = {
{ coords = vector3(0.0, 0.0, 0.0), distance = 1.2, config = 'newcinema' },
}
}config.blips = {
{
coord = vector3(0.0,0.0,0.0),
sprite = 135,
color = 29,
scale = 0.7,
name = 'Cinema | New Cinema'
}
}Last updated
