cyberzada Posted April 3, 2020 Share Posted April 3, 2020 (edited) 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 April 3, 2020 by Scarlett NX Link to comment
Administrators Tut Posted April 3, 2020 Administrators Share Posted April 3, 2020 Please use the Scripting section for future questions related to programming MTA. https://forum.multitheftauto.com/forum/71-scripting/ Link to comment
The_GTA Posted April 3, 2020 Share Posted April 3, 2020 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
cyberzada Posted April 3, 2020 Author Share Posted April 3, 2020 (edited) I think so, it could be the new hud I installed Edited April 3, 2020 by Scarlett NX Link to comment
cyberzada Posted April 3, 2020 Author Share Posted April 3, 2020 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
The_GTA Posted April 3, 2020 Share Posted April 3, 2020 2 minutes ago, Scarlett NX said: thanks for helping. I found the script that was forcing the vehicle_name, it was the skate mod on my server. Glad to hear that your issue has been resolved. 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now