RegisterCommand('currentTeam', function()
TriggerServerEvent('gw:currentTeamGet')
Wait(100)
if currentTeam ~= '' then --just for debug
print(currentTeam)
)
else print("Not found")
end
end)
RegisterCommand('currentTeam', function()
TriggerServerEvent('gw:currentTeamGet')
Wait(100)
team = tostsring(currentTeam)
if currentTeam ~= '' then --just for debug
print(team)
)
else print("Not found")
end
end)
RegisterCommand('currentTeam', function()
TriggerServerEvent('gw:currentTeamGet')
Wait(1000)
if currentTeam ~= '' then --just for debug
print(currentTeam)
else
print("Not found")
end
end)
RegisterCommand('currentTeam', function()
TriggerServerEvent('gw:currentTeamGet')
Wait(100)
team = tostring(currentTeam)
if currentTeam ~= '' then --just for debug
print(team)
else
print("Not found")
end
end)
Lol this for sure a stupid error of me .
Now i remember.I’ve already encountered this problem,but there focused on the registercommand fonction and miss this.What an asshole .