- Required Dependencies
-
https://chaoscode.io/resources/chaos.321/
https://umod.org/plugins/friends
This plugin requires the Chaos extension -> https://chaoscode.io/resources/chaos.321/
This requires the Friends plugin available on uMod ->
A GUI interface to utilise functions from the Friends plugin
Chat Command
/fmenu - Opens the menu
Custom Quick Command Buttons
You can create buttons for any chat command you want by adding a new entry to the config in the "Friend chat commands" section.
The 'Name' field is what is shown on the button
The 'Command' field is the command pressing the button will run.
There are 2 available arguments you can supply in these command ("{playerName}" and "{playerId}"). Adding these arguments will mimic the player typing them in chat.
Example. If I was to click the TPR button on my name via the menu it would run the chat command "/tpr k1lly0u"
Config
This requires the Friends plugin available on uMod ->
A GUI interface to utilise functions from the Friends plugin
Chat Command
/fmenu - Opens the menu
Custom Quick Command Buttons
You can create buttons for any chat command you want by adding a new entry to the config in the "Friend chat commands" section.
The 'Name' field is what is shown on the button
The 'Command' field is the command pressing the button will run.
There are 2 available arguments you can supply in these command ("{playerName}" and "{playerId}"). Adding these arguments will mimic the player typing them in chat.
Example. If I was to click the TPR button on my name via the menu it would run the chat command "/tpr k1lly0u"
Config
The configuration file can be found in your server directory at .../oxide/config/FriendsUI.json
The use of an editor and validator is recommended to avoid formatting issues
The use of an editor and validator is recommended to avoid formatting issues
JSON:
{
"Menu chat command": "fmenu",
"Friend chat commands": [
{
"Name": "TPR",
"Command": "/tpr {playerName}"
},
{
"Name": "TRADE",
"Command": "/trade {playerId}"
}
],
"UI Colors": {
"Background": {
"Hex": "151515",
"Alpha": 0.94
},
"Panel": {
"Hex": "FFFFFF",
"Alpha": 0.165
},
"Header": {
"Hex": "C4FF00",
"Alpha": 0.314
},
"Button": {
"Hex": "2A2E32",
"Alpha": 1.0
},
"Highlight1": {
"Hex": "C4FF00",
"Alpha": 1.0
},
"Highlight3": {
"Hex": "CE422B",
"Alpha": 1.0
},
"Close": {
"Hex": "CE422B",
"Alpha": 1.0
}
},
"Version": {
"Major": 2,
"Minor": 0,
"Patch": 0
}
}