Jump to content
Tory Xiao

Add editable vehicles to Zeus interface

Recommended Posts

4aAxxS.png

I use these codes in initserver.sqf to add zeus editable objects:


if (isServer) then
{
	[] spawn
	{
		while {true} do
		{
			{
				_x addCuratorEditableObjects
				[
				allPlayers, true
				];
				_x addCuratorEditableObjects
				[
				vehicles, true
				];
			} count allCurators;
			sleep 30;
		};
	};
};

But 'vehicles' also returned stuff that I didn't want like empty boxes. How do I add only driveable vehicles?

Share this post


Link to post
Share on other sites

replace it by (vehicles select {toLowerANSI getText (configOf _x/"crew") isNotEqualTo "civilian"})

 

Share this post


Link to post
Share on other sites
17 hours ago, pierremgi said:

replace it by (vehicles select {toLowerANSI getText (configOf _x/"crew") isNotEqualTo "civilian"})

 

Thanks buddy you just saved my day

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

×