Citizen.CreateThread(function()
-- Getting the object to interact with
AfterHoursNightclubs = exports['bob74_ipl']:GetAfterHoursNightclubsObject()
AfterHoursNightclubs.Interior.Name.Set(AfterHoursNightclubs.Interior.Name.tony)
end)
function CreateNamedRenderTargetForModel(name, model)
local handle = 0
if not IsNamedRendertargetRegistered(name) then
RegisterNamedRendertarget(name, 0)
end
if not IsNamedRendertargetLinked(model) then
LinkNamedRendertarget(model)
end
if IsNamedRendertargetRegistered(name) then
handle = GetNamedRendertargetRenderId(name)
end
return handle
end
Citizen.CreateThread(function ()
local model = GetHashKey(“ba_prop_club_screens_01”);
local pos = { x = -1604.664, y = -3012.583, z = 80.00 };
local entity = GetClosestObjectOfType(pos.x, pos.y, pos.z, 0.05, model, 0, 0, 0)
local handle = CreateNamedRenderTargetForModel(“club_projector”, model)
RegisterScriptWithAudio(0)
SetTvChannel(-1)
Citizen.InvokeNative(0x9DD5A62390C3B735, 2, "PL_TOU_LSER_GALAXY", 0)
SetTvChannel(2)
EnableMovieSubtitles(1)
while true do
SetTvAudioFrontend(0)
AttachTvAudioToEntity(entity)
SetTextRenderId(handle)
Set_2dLayer(4)
Citizen.InvokeNative(0xC6372ECD45D73BCD, 1)
DrawTvChannel(0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255)
SetTextRenderId(GetDefaultScriptRendertargetRenderId())
Citizen.Wait(0)
end
Out of curiosity, why would you state that it gives you an error but not tell anyone what that error is? Did you just want to share with us that you received an error while making it impossible for anyone to help you?
Found more errors . Error resuming coroutine: IsNamedRendertargetRegistered.lua:2: bad argument #1 to ‘_ii’ (number expected, got string)
[ 1177328] stack traceback:
[ 1177328] [C]: in global ‘_ii’
[ 1177328] IsNamedRendertargetRegistered.lua:2: in function ‘IsNamedRendertargetRegistered’
[ 1177328] client.lua:7: in function ‘CreateNamedRenderTargetForModel’
[ 1177328] client.lua:24: in function client.lua:20
For the Projector, Here’s what i’ve gathered.
PL_
(DJ’s) TBM,TOU,SOL,DIX
_LSER _
(Clubs) OMEGA,GEFANGNIS,PARADISE,(StudioLosSantos?),MAIS,GALAXY,PALACE,TECH,FUNHOUSE
Only club I have not figured out is Studio Los Santos. Also, Not sure if there are any other effects than the LSER. Happy Coding!