v10networkscom / saltychat-fivem

FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
GNU General Public License v3.0
70 stars 64 forks source link

SetPlayerAlive #132

Closed Schwarzerteddydev closed 1 year ago

Schwarzerteddydev commented 1 year ago

how do I set that when a player is dead that this can no longer talk as long as the is dead

BlackFlash5 commented 1 year ago

Through the export you mentioned in the title? If you don't know how to use exports in FiveM, look it up.

Schwarzerteddydev commented 1 year ago

How and where

NiclqsGER commented 1 year ago

Just switch on your brain and use google.

exports.saltychat:SetPlayerAlive(netId, boolean)

Schwarzerteddydev commented 1 year ago

as if I had not already done it does not work

NiclqsGER commented 1 year ago

Are you building that in correctly, too? It works fine for me.

Schwarzerteddydev commented 1 year ago

where exactly do I have to install it currently I have it like this

https://prnt.sc/EisHrnm9zko2

but when the player is dead he can't talk and when he is alive again he can't talk either