Actaully, funny enough, I am looking at any possible issues with 3dme, which is one of your scripts actually. Specifically, we changed it a bit. Do you think any of these changes would cause an issue? I’m not 100% on js stuff, but this is what I did:
setImmediate(() => {
if (GetConvarInt('3dme_enableProximity', 0) && !GetConvarInt('voice_syncData', 0)) {
console.log('[^1ERROR^7] You have `^13dme_enableProximity^7` enabled but dont have `^1voice_syncData^7` enabled in pma-voice!')
}
})
and also this bit we changed:
RegisterCommand('me', (source, args) => {
const checkmsg = `/me ${args.join(' ')}`
const message = `* ${args.join(' ')} *`
exports.DiscordChatLogs.createLog(source, GetPlayerName(source), ["/me"], "/me " + message)
// check if the message contains any blacklisted words
if (!exports.DiscordChatRoles.msrpBlacklistCheck(source, checkmsg)) {
// make sure they're not on cooldown (they could try spamming the command)
if (!meCooldown[source] || meCooldown[source] < GetGameTimer()) {
meCooldown[source] = GetConvarInt('3dme_cooldown', 1500) + GetGameTimer()
let proximity
// enable support for pma-voice, if the player has toggled it.
if (GetConvarInt('3dme_enableProximity', 0) && GetConvarInt('voice_syncData', 0)) {
proximity = Player(source).state.proximity.distance * (GetConvar('voice_useNativeAudio', 'false') === 'true' && 3 || 1)
if (GetConvarInt('3dme_enableProximity', 0) && Math.floor(proximity) > GetConvarInt('3dme_maxRange', 25)) return emit('3dme:voiceRangeExploit', source)
} else {
proximity = GetConvarInt('3dme_maxRange', 25)
}
// useful for logging
emit('3dme:sent3dme', source, message)
const plyCoords = GetEntityCoords(GetPlayerPed(source))
const players = getPlayers()
players.forEach((plySrc) => {
const tgtCoords = GetEntityCoords(GetPlayerPed(plySrc))
if (getDistance(plyCoords, tgtCoords) < proximity) {
emitNet('3dme:show3dme', plySrc, source, message)
}
})
}
} else {
// useful for moderation/anticheat
emit('3dme:blacklistedWord', source, message)
}
})