Jump to content

Can´t hide vehicle_name


Recommended Posts

Could someone tell me the error? the car's name keeps appearing in the hud

Client:

--Feito por Nexus Modding. Não remova os créditos.

local components = { "vehicle_name", "area_name", "radio" }

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),
function ()
	for _, component in ipairs( components ) do
		setPlayerHudComponentVisible( component, false )
	end
end)

Server:

--Feito por Nexus Modding. Não remova os créditos.

addEventHandler ( "onPlayerJoin", root, 
    function ()
        setPlayerHudComponentVisible ( source, "vehicle_name", false )
        setPlayerHudComponentVisible ( source, "area_name", false )
		setPlayerHudComponentVisible ( source, "radio", false )
    end
)

note: the radio and location are functioning normally except the vehicle name

Edited by Scarlett NX
Link to comment
14 hours ago, Scarlett NX said:

Could someone tell me the error? the car's name keeps appearing in the hud

note: the radio and location are functioning normally except the vehicle name

There is no "error" in your script. But could there be any other resource that forces "vehicle_name" to be shown?

Link to comment
1 hour ago, The_GTA said:

There is no "error" in your script. But could there be any other resource that forces "vehicle_name" to be shown?

thanks for helping. I found the script that was forcing the vehicle_name, it was the skate mod on my server.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...