kalitonchik Posted February 1, 2009 Share Posted February 1, 2009 problem is that I can not decide I run this script - log dont show me erors! but nothing happens - this script must remove the ammo,area_name,money,radar,vehicle_name,weapon function hudChanger () showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "area_name", false ) showPlayerHudComponent ( source, "money", false ) showPlayerHudComponent ( source, "radar", false ) showPlayerHudComponent ( source, "vehicle_name", false ) showPlayerHudComponent ( source, "weapon", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) please help to correct the script Link to comment
Willy Posted February 1, 2009 Share Posted February 1, 2009 If you have this script clientside it may cause the problem as "onPlayerJoin" is a serverside only event. try "onClientPlayerJoin" instead. Link to comment
kalitonchik Posted February 2, 2009 Author Share Posted February 2, 2009 senks for help i cheanget it to addEventHandler ( "onPlayerSpawn", getRootElement(), hudChanger ) 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