Getting own playerArmour

Userinspace

Новичок
Автор темы
12
3
Версия MoonLoader
.026-beta
Hey there I'm totally new to LUA scripting. I need help regarding

local vestText, msg = string. match(text,"for $200, type /accept bodyguard to accept.") -- for $200, type /accept bodyguard to accept.
if (vestText and color == 869072810) then
lua_thread.create(function()
wait(500)
sampSendChat("/accept bodyguard")
end)
end


i need is it will check for player armor (in this case my own armor ) and if its less then 45, only then it'll send "/accept bodyguard"
.Thank you.
 

Userinspace

Новичок
Автор темы
12
3
1 condition and all.
Lua:
if getCharArmour(PLAYER_PED) < 45 then
    -- code
end
Thank you so much savior <3

Hey there lovely people, help me with one more thing.
VST.png

If this dialog opens it will select the first car and click the (de)spawn button.
 
Последнее редактирование:
  • Влюблен
Реакции: SomaGnoma