Comments (3)
[ 68312] Error resuming coroutine: @tokovoip_script/src/c_utils.lua:45: attempt to index a nil value (field '?')
[ 68328] stack traceback:
[ 68328] @tokovoip_script/src/c_utils.lua:45: in function 'doRefreshAllPlayerData'
[ 68328] citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
[ 68344] Processing removal for player 113 (Carm)
[ 68344] reassigning ped: 0000000000000000 0
[ 68344] Error resuming coroutine: @tokovoip_script/src/c_utils.lua:45: attempt to index a nil value (field '?')
[ 68344] stack traceback:
[ 68359] @tokovoip_script/src/c_utils.lua:45: in function 'doRefreshAllPlayerData'
[ 68359] citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
[ 68359] Processing removal for player 108 (LazerX7)
[ 68375] reassigning ped: 0000000000000000 0
[ 68375] Error resuming coroutine: @tokovoip_script/src/c_utils.lua:45: attempt to index a nil value (field '?')
[ 68391] stack traceback:
[ 68391] @tokovoip_script/src/c_utils.lua:45: in function 'doRefreshAllPlayerData'
[ 68391] citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
from tokovoip_ts3.
So I think the issue is related playersData returning nil at times at higher slots.
Change function at line 42 of tokovoip_script/src/c_utils.lua
function doRefreshAllPlayerData(serverData)
for playerServerId, playerData in pairs(serverData) do
for key, data in pairs(playerData) do
if (not playersData[playerServerId]) then
playersData[playerServerId] = {};
end
playersData[playerServerId][key] = {data = data, shared = true};
end
end
for playerServerId, playerData in pairs(playersData) do
for key, data in pairs(playerData) do
if (not serverData[playerServerId]) then
playersData[playerServerId] = nil;
elseif (serverData[playerServerId][key] == nil) then
playersData[playerServerId][key] = nil;
end
end
end
end
from tokovoip_ts3.
Thanks for the issue. A similar fix has been applied in #25, but on the server side. Waiting for some testing to be done before merging to master.
from tokovoip_ts3.
Related Issues (20)
- Webserver resource not starting HOT 1
- Voice Activation Delay
- ws_server Not Installing HOT 2
- ws_server not working HOT 3
- Animation Radio Not Work. HOT 1
- ws server isnt installing HOT 5
- TokoVoip will not connect or will crash after connecting.
- what port do ws_server uses? HOT 2
- TokoVoip not connecting HOT 3
- ws_server
- tokovoip_script error
- Latest TokoVoIp, fx artifcts 45XX+ not working properly HOT 3
- Server Not Starting Cause of yarn HOT 1
- Ts3 and TokoVoIp HOT 5
- talk to my voice activation
- People are being moved in and out of the voice-channel! HOT 3
- SCRIPT Error loading script ws_server
- Working Fine But Wont Move Channels
- Voice Activation Quits after talking on Radio
- Mic click saturates or is not present
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokovoip_ts3.