Git Product home page Git Product logo

saltychat-redm's Introduction

Salty Chat for RedM

Build Status

An example implementation of Salty Chat for RedM.

You can report bugs or make sugguestions via issues, or contribute via pull requests - we appreciate any contribution.

Join our Discord and start with Salty Chat!

Setup Steps

  1. Copy the folder saltychat into your resources
  2. Build the solution (saltychat\SaltyChat-RedM.sln) with Visual Studio 2019, so the *.net.dll files get build
  3. Add start saltychat into your server.cfg
  4. Open fxmanifest.lua and adjust the variables
VoiceEnabled "true"
ServerUniqueIdentifier "NMjxHW5psWaLNmFh0+kjnQik7Qc="
RequiredUpdateBranch ""
MinimumPluginVersion ""
SoundPack "default"
IngameChannelId "25"
IngameChannelPassword "5V88FWWME615"

Keybinds

Description Control Default QWERTY
Toggle voice range OpenJournal J
Talk on primary radio PushToTalk N
Talk on secondary radio OpenSatchelMenu B

Events

Client

SaltyChat_TalkStateChanged

Parameter Type Description
isTalking bool true if player starts talking, false when the player stops talking

SaltyChat_MicStateChanged

Parameter Type Description
isMicrophoneMuted bool true if player mutes mic, false when the player unmutes mic

SaltyChat_MicStateChanged

Parameter Type Description
isSoundMuted bool true if player mutes sound, false when the player unmutes sound

Exports

Server

EstablishCall

Starts a call between two players.

Parameter Type Description
callerNetId int Server ID of the caller
partnerNetId int Server ID of the call partner

EndCall

Ends a call between two players.

Parameter Type Description
callerNetId int Server ID of the caller
partnerNetId int Server ID of the call partner

SetPlayerRadioSpeaker

Turns radio speaker of an player on/off.

Parameter Type Description
netId int Server ID of the player
toggle bool true to turn on speaker, false to turn it off

SetPlayerRadioChannel

Sets a player's radio channel.

Parameter Type Description
netId int Server ID of the player
radioChannelName string Name of the radio channel
isPrimary bool true to set the channel as primary, false to set it as secondary

RemovePlayerRadioChannel

Removes a player from the radio channel.

Parameter Type Description
netId int Server ID of the player
radioChannelName string Name of the radio channel

SetRadioTowers

Sets the radio towers.

Parameter Type Description
towers float[][] Array with radio tower positions (X, Y, Z)

saltychat-redm's People

Contributors

blackflash5 avatar kono5alive avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.