[Lua] api.user_edit not working

Handle problems or report system bug
Post Reply
User avatar
francisco
Posts: 62
Joined: Tue Mar 07, 2023 1:48 pm
Location: Brazil
Contact:

[Lua] api.user_edit not working

Post 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)
😴
Post Reply