Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setPlayerFactionRank(player, rankID)
- if (not player or not rankID) then return false end
- if (not isElement(player) or getElementType(player) ~= "player" or type(rankID) ~= "number") then return false end
- local charID = exports.global:getCharacterIDFromName(getPlayerName(player))
- dbExec( db, "UPDATE `characters_faction` SET `faction_rank` = '?' WHERE `character_id` = '?'", rankID, charID)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment