I'm using "onClientClick", but he is considering "Mouse1"(This is left click) and "mouse2"(This is right click) and I want to consider only the the first. How can I do this?
I could not test it yet, but seems to be functional.
Está lá...
<export function="exports.exp_system" type="server" />
<export type="server" function="addPlayerEXP" />
And even if there was no such argument, there's still a function setControlState which can make you walk.
I love you man! But how do I do that? It does not seem so simple.
Obs: I'm still thrilled with your RPG.
Anyone know to fix it? Not gaining experience.
WARNING: exp_system\server.lua:0: Bad argument @ 'addPlayerEXP' [Expected player element at argument 1, got 54]
Server.lua:
addEventHandler("onPlayerWasted",root,
function (_,killer)
if (killer and killer ~= source) then
exports.exp_system:addPlayerEXP(killer,25)
end
end)