Pivity

Adding Unbox button to my f4 menu

Last read Never
#1

If i wanna make it so that when i click button in my f4 mrnu in order to open a chat command which is !unbox how do i do that?

I have the button but idk how exactly to do it, any help?

enabled = true,
name = "UNBOXING",
description = "unbox special packages",
buttonNormal = Color( 145, 71, 101, 190 ),
buttonHover = Color( 145, 71, 101, 240 ),
textNormal = Color ( 255, 255, 255, 255 ),
textHover = Color( 255, 255, 255, 255 ),
func = function()

},

Dumb x 2
#2

What unboxing addon are you using? Perhaps make a job instead of a thread?

#3
ByBenat 6th of August 2018 16:46:46
What unboxing addon are you using? Perhaps make a job instead of a thread?

im using blues_unboxing_2 and isnt it to simple for it to be a job?

#4

What F4 menu are you using?

#5

What has this got to do with gmodstore?

Agree x 1Disagree x 1
#6

https://www.gmodstore.com/scripts/view/1679/arivia-the-darkrp-f4-menu-plaxus-collection

Dumb x 1
#7
ByLAST OF USat 6th of August 2018 15:28:44
If i wanna make it so that when i click button in my f4 mrnu in order to open a chat command which is !unbox how do i do that?I have the button but idk how exactly to do it, any help?enabled = true,name = "UNBOXING",description = "unbox special packages",buttonNormal = Color( 145, 71, 101, 190 ),buttonHover = Color( 145, 71, 101, 240 ),textNormal = Color ( 255, 255, 255, 255 ),textHover = Color( 255, 255, 255, 255 ),func = function()},
{
enabled = true,
name = "UNBOX",
description = "Open up the Unboxing menu!",
//icon = "arivia_button_workshop.png", -- Suggesting editing this, though this one will be fine :)
buttonNormal = Color(124, 51, 50, 190),
buttonHover = Color(124, 51, 50, 240),
textNormal = Color(255, 255, 255, 255),
textHover = Color(255, 255, 255, 255),
func = function()
RunConsoleCommand("say !unbox")
end

}

#8
ByObitus [ON HOLIDAY / BACK 20th AUGUST]at 7th of August 2018 23:51:05

RunConsoleCommand requires the correct use of arguments:

...
RunConsoleCommand("say", "!unbox")

...

Agree x 2
#9

Or use LocalPlayer():ConCommand(“say !unbox”)

In the future simple questions like this is more for facepunch or post a $5 job if you can’t google it

OR if you own the script try support tickets. Guess some devs will help with easy stuff like this

Agree x 1
Users viewing this thread
Nobody