Jump to content

[RELEASE] Custom GUI / Menu


theduke

Recommended Posts

A small script for action button to change color ingame. I use this github for color example.

Put this script in a sqf in scripts folder and link it to a button.

Share your scripts too :)

Enjoy :)

  Reveal hidden contents

 

Edited by Casual_Jeff
Code in spoiler box :)
Link to comment
Share on other sites

  On 3/3/2017 at 12:36 AM, Dusty459 said:

ok thank you how do i add likr mozzie and other stuff

Expand  

i guess u can use the same bunch of code and change the bike id by the mozzie id.

this line:

_object = "Old_bike_TK_CIV_EP1" createVehicle (_posplr);

also change this texts

cutText [format["You are in Combat and cannot build a bike."], "PLAIN DOWN"];

    cutText [format["You've used your toolbox to build a bike."], "PLAIN DOWN"];
    
        cutText [format["Warning: Spawned Bikes DO NOT SAVE after server restart!"], "PLAIN DOWN"];   

Link to comment
Share on other sites

  On 3/5/2017 at 6:39 PM, Dusty459 said:

deploy works Just Not Repacking

Expand  

thats because that script was not included. the bike script was just a sample...

but here is my bike pack script

create a file called packbike.sqf

  Reveal hidden contents

save it in your mission where you prefer.

go into your fn_selfactions.sqf

add this at the bottom. Make sure to change your path to match yours...

  Reveal hidden contents

still in fn_selfactions.sqf. look for

player removeAction s_player_fuelauto2;
	s_player_fuelauto2 = -1;

and under add this

player removeAction s_player_deploybike2;
    s_player_deploybike2 = -1;

repack your mission and you should be good to go

Link to comment
Share on other sites

  On 2/21/2016 at 3:49 PM, theduke said:

Players with smaller resolutions, the text can be cut out. I havnt figured that one out either.
If someone knows how i can fix either issue please let me know :)

Expand  

I think you could fix this by adding a scrollbar, I took a look at the ESSVD3 spawn script (pretty sure you use that as well) and I think this is the part of the code you are looking for. I might be wrong on the exact code but i think you should be able to use a part of the ESSVD3 script to make it work

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 2 weeks later...
  On 3/27/2017 at 5:42 PM, ThatFellaNick said:

@theduke Hey man great looking menu. :)

Drop box link is dead unfortunately 

Expand  

Hmm yes thats because this version is for 1051 epoch. 

Was removed from the dropbox and new one has a github for 1061

this would be the updated version

 

Link to comment
Share on other sites

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...