not work. and not error in debug.
how to make it go decreasing the transparency?
local Armor = getPlayerArmor ( player );
setElementAlpha ( Bribe[player], 255/100*Armor )
thanks. how to add transparency to the object?
example
Armor = getPlayerArmor ( player )
( 255*Armor )
Bribe[player] = createObject(1242,x,y-8,z);
setObjectScale ( Bribe[player], 1.9 )
setElementCollisionsEnabled(Bribe[player],false)
exports.bone_attach:attachElementToBone(Bribe[player],player,3,0,0,0,3,-5,0)
how I could increase the size of the object?
Bribe[player] = createObject(1242,x-2,y,z);
setElementCollisionsEnabled(Bribe[player],false)
attachElements (Bribe[player],player,-0.0,0.0,0.3) ;
Hello friends. I'm trying to make show the vest, "object" while I'm of armor ... and then I'm losing armor the object gets transparent.
I have no idea how to do, and what to use. what would be the best choice function? "createObject" or "bone attachments"
https://community.multitheftauto.com/index.php?p ... ls&id=2540
My thought was that
function getArmour()
local amour = getPlayerArmor(source)
if amour >= 100 then
x, y, z = getElementPosition(source)
Obj = createObject(ID, x, y, z, 0, 0, 0) -- set transparency in the object
attachElements(source. Obj)
end
end
setTimer(getArmour, 1500, source)
sorry my english
the guy is creating fake servers to get fame. even he had already created a fake server, with the same name of my.... he is always creating intrigues among the owners of real servers, here in Brazil.
Original: mtasa://192.99.141.242:22003
fake: mtasa://107.161.124.140:22003
DONE
the guy is creating fake servers to get fame. even he had already created a fake server, with the same name of my.... he is always creating intrigues among the owners of real servers, here in Brazil.
Original: mtasa://192.99.141.242:22003
fake: mtasa://107.161.124.140:22003
DONE
-- segue a tabela com os comandos bloqueados. remove o comando q quer desbloquear
cmdList = {
["register"]=true,
["login"]=true,
["me"]=true,
["say"]=true
}
addEventHandler("onPlayerCommand", root,
function(cmdName)
if cmdList[cmdName] then
cancelEvent()
end
end)
Creio que a outra parte do seu "sistema" contenha,
setElementHealth (carro , getElementHealth (carro ) 1000) --definido
setVehicleLocked ( carro , false ) --definido
takePlayerMoney ( thePlayer, 350 ) --definido
porque se não for isso, vai fazer mais sentido usar o meu exemplo do que a sua função final.
mais de qualquer forma a sua ideia é boa...