-
-
Notifications
You must be signed in to change notification settings - Fork 497
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
You can't check timer details from timer, that was created in other resource. isTimer function is working, but getTimerDetails isn't.
To reproduce
- create resource "test" with serverside file
- create resource "test2" with serverside file
- paste this code inside resource "test" and run it:
function outputSomething()
outputChatBox("I'm working, you can get my details!")
end
local timer = setTimer(outputSomething, 1000, 0)
setElementData(root, "myTimer", timer)- paste this code inside resource "test2" and run it:
local timerIsWorking = isTimer(getElementData(root, "myTimer"))
local timeLeft, amout, executions = getTimerDetails(getElementData(root, "myTimer"))
outputChatBox(tostring(timerIsWorking)..", "..tostring(timeLeft)..", "..tostring(amount)..", "..tostring(executions))- resource "test2" will show info on chat:
true, false, nil, nil
Expected behaviour
You could check timer details even if they're created in other resource.
Version
Server: Ubuntu 14, MTA:SA Server v1.5.6-release-14688
Client: Windows 10, Multi Theft Auto v1.5.6-release-16068.8.014
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working