Namorek Posted June 10, 2010 Posted June 10, 2010 Hi,How Disable HUD map because Role Play not look radar and Hud
TheRealCow Posted June 10, 2010 Posted June 10, 2010 https://wiki.multitheftauto.com/wiki/ShowPlayerHudComponent Server Name: mR|Team Clan Race Server Server IP: 84.82.81.225:22004
Namorek Posted June 10, 2010 Author Posted June 10, 2010 I was not working My code function hudChanger () showPlayerHudComponent ( source, "radar", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger )
dzek (varez) Posted June 10, 2010 Posted June 10, 2010 just put this client-side: showPlayerHudComponent("radar", false) Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Namorek Posted June 10, 2010 Author Posted June 10, 2010 just put this client-side: showPlayerHudComponent("radar", false) There is no turn off the HUD radar (is Power ON HUD radar)
dzek (varez) Posted June 10, 2010 Posted June 10, 2010 just put this client-side: showPlayerHudComponent("radar", false) There is no turn off the HUD radar (is Power ON HUD radar) maybe something is turning it on? or maybe you messed something up? put just this ONE line, nothing more as client-side.. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Xierra Posted June 11, 2010 Posted June 11, 2010 Here's the way: showPlayerHudComponent("radar", false) This one hides the radar. And showPlayerHudComponent("radar", true) This one shows the radar. So True and False determines if the HUD component shows or not. XX3 is gone. This is my new name. :3
TheRealCow Posted June 11, 2010 Posted June 11, 2010 in server-side : function hudChanger () showPlayerHudComponent ( source, "radar", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) Meta : <meta> <info author="mR|TurboCow" /> <script src="huds.lua" type="server" /> </meta> wiki's one, and tested... it works.. For me Server Name: mR|Team Clan Race Server Server IP: 84.82.81.225:22004
The_Ex Posted June 11, 2010 Posted June 11, 2010 Didn't even put script file in meta? This is getting retarted. MTASA.LV - Latvian MTA Community
Xierra Posted June 11, 2010 Posted June 11, 2010 Namorek, the first script you put already works. Just make a meta.xml, it's one requirement for every script, if you think it still doesn't work. XX3 is gone. This is my new name. :3
Namorek Posted June 11, 2010 Author Posted June 11, 2010 in server-side : function hudChanger () showPlayerHudComponent ( source, "radar", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) Meta : <meta> <info author="mR|TurboCow" /> <script src="huds.lua" type="server" /> </meta> wiki's one, and tested... it works.. For me Great Thanks Nice Close HUD radar <script src="huds.lua" [color=#FF0000]type="server" />[/color] This is required Nice job. Closed Topic
50p Posted June 12, 2010 Posted June 12, 2010 type="server" is not required if the script is server-side. If script is client-side then type="client" is necessary. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
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