Page 1 of 1

[Lua] api.user_edit not working

Posted: Mon Feb 19, 2024 9:58 pm
by francisco
Hello! I'm trying to use the API user_edit method in Lua but it's not working, as I always get the error "Userid Or Username name is required" even if I provide the correct ID/Username. I've tried several parameter options, but none of them work: id, userid, user_id, user, username, user_name, etc.

Code: Select all

local user_id = env.userid

local params = {
    userid = user_id,
    --^-- This doesn't work
    set_point = 1000
}
local is_ok, useredit, info, error_info = api.user_edit(params)