Skip to content

invalid key to 'next' #2

Description

@Wolphwood

Server :

local coords = {x = 0, y = 0, z = 0}
TriggerClientCallback(source, 'npwd:garage:getStreetName', coords)

Client :

RegisterClientCallback('npwd:garage:getStreetName', function(coords)
	return GetStreetNameFromHashKey(GetStreetNameAtCoord(coords.x,coords.y,coords.z))
end)

Result (server console)

[  script:npwd_garage] Error running system event handling function for resource npwd_garage: invalid key to 'next'
[  script:npwd_garage] stack traceback:
[  script:npwd_garage]  [C]: in function 'next'
[  script:npwd_garage]  citizen:/scripting/lua/scheduler.lua:187: in function <citizen:/scripting/lua/scheduler.lua:148>

image

The weirdest thing is, the callback return the expected value even with this error.. :|

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions