Well i try make one script check "lookfeet" on database, and change outifit with this "lookfeet".
He dont have error on console, but him just change outifit and is not checking lookfeet.
Script here:
Someone can help with this? I am new to LUA yet ...
.
He dont have error on console, but him just change outifit and is not checking lookfeet.
Script here:
Code:
function onSay(cid, words, param)
local lookhead = db.getResult("SELECT `lookhead` FROM `players` WHERE `id` =" ..cid)
local addon = {lookType = 257, lookHead = lookhead:getID()}
if isPlayer(cid) == true then
doCreatureChangeOutfit(cid, addon)
return false
end
end
Someone can help with this? I am new to LUA yet ...
.