Environment questions
GTA V version: most reccent
Up to date - Yes:
Legit :
Purchased where - Epic:
Windows version- 10
Important parts
What is the issue you’re having? - @core_credits/server/main.lua:268: invalid vector field: run
What are you trying to do? Collect credits after running a certain time frame
What have you tried already to fix the issue? Looking at the code everything looks okay. im pretty lost as to whats causing it
What did you do to get this issue? nothing… this is on a fresh install of the script
What server did you get this issue on? Be specific and name some, ‘all of them’ by itself isn’t useful! my personal server.
Additional comments
here is line 249 - 280 RegisterServerEvent(“core_credits:progressTask”)
AddEventHandler(
“core_credits:progressTask”,
function(task, progress)
local src = source
local xPlayer = ESX.GetPlayerFromId(src)
local tasks =
MySQL.Sync.fetchScalar(
"SELECT `tasks` FROM users WHERE identifier = @identifier ",
{["@identifier"] = xPlayer.identifier}
)
if tasks == "" then
tasks = {}
else
tasks = json.decode(tasks)
end
if tasks[task] then
tasks[task] = tasks[task] + progress
else
tasks[task] = progress
end
MySQL.Async.execute(
"UPDATE `users` SET `tasks`= @tasks WHERE `identifier` = @identifier",
{["@tasks"] = json.encode(tasks), ["@identifier"] = xPlayer.identifier},
function()
end
)
end
)