[RELEASE] v2: Fix holes and customize the map

I don’t recommend to edit the code of the resource directly. You’ll lose your modifications when you update.

You should use your own resource and set bob74_ipl as dependency:


__resource.lua

resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'

dependency 'bob74_ipl'

client_script "client.lua"

client.lua

Citizen.CreateThread(function()
    -- Getting the object to interact with
    AfterHoursNightclubs = exports['bob74_ipl']:GetAfterHoursNightclubsObject()

    AfterHoursNightclubs.Interior.Name.Set(AfterHoursNightclubs.Interior.Name.tony)
end)

2 Likes

Hi guys, to TVs and projector works, just make a resource like this:

archive: __resource.lua

resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’

client_script ‘client.lua’

archive: client.lua

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

end)

Thanks for: https://github.com/throwarray/gtav-rendertarget

2 Likes

gives me error !

1 Like

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?

1 Like

local model = GetHashKey(“ba_prop_club_screens_01”); – 2054093856 got an error here !

1 Like

just remove – 2054093856 and it should work

1 Like

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

1 Like

for me… i need to light up the lazer and the floor…
is there a way to have dryice smoke on to?

tv and projector work just fine!!

1 Like

Let´s make a new topic for that…

1 Like

Couldn’t help but notice that there wasn’t anything in the Wiki for Trevor’s trailer and being able to make it clean.

1 Like

Oh wow you’re totally right!

I added a wiki page about Trevor’s trailer and Zancudo gates :slight_smile:

And btw, Zancudo gates are opened by default now.

3 Likes

Hello, nice work for adding screens

But i have a question how do you know the type of video sequence ? (“PL_TOU_LSER_GALAXY”)

I tried to change to PL_TBM_LSER_GALAXY and it change to VideoSequence of TheBlackMadonna

2 Likes

i am using the same script as he posted and it wont even load for me just does not work at all i dont get it

2 Likes

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!

3 Likes

Yeah, i found it too after, i also found that we can replace “LSER” By “LED” and screens are still working

3 Likes

is there other club then galaxy that we can have…
from after hour i mean

2 Likes

Does anyone have the names of all the styles for this line?

AfterHoursNightclubs.Interior.Style.Set(AfterHoursNightclubs.Interior.Style.trad)

1 Like
trad = "Int01_ba_Style01", 
edgy = "Int01_ba_Style02", 
glam = "Int01_ba_Style03",`
1 Like

thank you so much !

2 Likes

No problem. Everything is in the dlc_afterhours/nightclubs.lua file. You’ll have to pick through it until Bob finishes the Wiki for the update.

1 Like