cyberzada Posted April 3, 2020 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
Moderators Tut Posted April 3, 2020 Moderators Posted April 3, 2020 Please use the Scripting section for future questions related to programming MTA. https://forum.multitheftauto.com/forum/71-scripting/
The_GTA Posted April 3, 2020 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?
cyberzada Posted April 3, 2020 Author Posted April 3, 2020 (edited) I think so, it could be the new hud I installed Edited April 3, 2020 by Scarlett NX
cyberzada Posted April 3, 2020 Author 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.
The_GTA Posted April 3, 2020 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
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