Jump to content
Sign in to follow this  
Freddywall

Help with script

Recommended Posts

 

Hello, i got script which shows player markers and names on map, it work's well in SP, but didn't work on Dedicated server. What's the problem?

((findDisplay 12) displayCtrl 51) ctrlAddEventHandler [

"Draw",

{

params ["_ctrl"];

{

_ctrl drawIcon [

getText (configFile >> "CfgVehicles" >> typeOf _x >> "icon"),

[side _x] call BIS_fnc_sideColor,

_x,

32,

32,

getDir _x,

name _x,

true 

]

} forEach (units (group player));

}

];

Share this post


Link to post
Share on other sites

where do you call the script from ?

Share this post


Link to post
Share on other sites

Try to add it to iniplayerlocal.sqf instead and also waitUntil {!isNull (findDisplay 12)};

Share this post


Link to post
Share on other sites
45 minutes ago, Mr H. said:

Try to add it to iniplayerlocal.sqf instead and also waitUntil {!isNull (findDisplay 12)};

It's doesn't work

Share this post


Link to post
Share on other sites

At first glance I don't see anything wrong with this. Maybe add diag logs and check your logs 

Share this post


Link to post
Share on other sites
17 minutes ago, Mr H. said:

At first glance I don't see anything wrong with this. Maybe add diag logs and check your logs 

Sry, my bad. It's working. Thank you

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×