help with "moon" script

lifeisabitch

Участник
Автор темы
59
2
Версия SA-MP
  1. Любая
Hello Goodnight.

I have doubts about how to make a Lua script

I'm starting to learn how to program

Eu tentei criar um script para mudar a pele do meu personagem usando um comando, mas queria colocar no imgui para selecionar, parecido com o script "stealth"

My script that failed:

Lua:
        sampRegisterChatCommand("ChangeSkin", function(param)
            local skinId = tonumber(param)
            if skinId ~= nil then
                local _, myid = sampGetPlayerIdByCharHandle(PLAYER_PED)
                SetPlayerSkin(myid, skinId)
            else
                sampAddChatMessage("Use /ChangeSkin [ID]", -1)
            end
        end)

I would like to put a script on the imgui similar to "Stealth", would it be possible?

Stealth image:


I also attached the image

if we succeed, i will be very grateful.
 

Вложения

  • ChangeSkin.png
    ChangeSkin.png
    180.5 KB · Просмотры: 43