kalitonchik Posted February 1, 2009 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
Willy Posted February 1, 2009 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.
kalitonchik Posted February 2, 2009 Author Posted February 2, 2009 senks for help i cheanget it to addEventHandler ( "onPlayerSpawn", getRootElement(), hudChanger )
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