🔔 [RELEASE] v2: Fix holes in the map (up to After Hours)

ipl
fix
map
hole

#146

Crappy scripter here but I really want the nightclub to look like a strip club. I kinda get what you’re saying but I’m not 100% sure.


#147

Aight I think I get it. I change this code, yeah?


#148

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)


#149

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


#150

gives me error !


#151

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?


#152

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


#153

just remove – 2054093856 and it should work


#154

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


#155

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!!


#156

Let´s make a new topic for that…


#157

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


#158

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.


#160

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


#161

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


#162

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!


#163

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


#164

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


#165

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

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


#166
trad = "Int01_ba_Style01", 
edgy = "Int01_ba_Style02", 
glam = "Int01_ba_Style03",`