Lizaarraagaa Discord Roles System
Hi to all the people, i’m presenting this new script i’ve made for all the fivem community.
This script allows you to do the next things.
-- Check If User Is In The Guild
exports["lzrgaDiscord"]:checkIsInGuild(userId --[[ integer ]])
-- Remove Role to User
exports["lzrgaDiscord"]:removeRole(userId --[[ integer ]], roleId --[[ integer ]])
-- Give Role to User
exports["lzrgaDiscord"]:giveRole(userId --[[ integer ]], roleId --[[ integer ]])
-- Check Bot Token (It's just to check if the specified discord token is valid)
exports["lzrgaDiscord"]:checkBotToken()
-- Check if user has an specific role
exports["lzrgaDiscord"]:checkUserHasRole(userId --[[ integer ]], roleId --[[ integer ]])
-- Get All Roles from a User
exports["lzrgaDiscord"]:getUserRoles(userId --[[ integer ]]) --[[ Returns an array/table ]]
-- Get Avatar from User
local avatarData = exports["lzrgaDiscord"]:getUserAvatar(userId --[[ integer ]])
local avatarId = avatarData.id
local avatarURL = avatarData.avatarURL
-- Get Data From User Account
exports["lzrgaDiscord"]:getUserData(userId --[[ integer ]]) --[[ returns: Data Array/Table ]]
-- Get Current User Status
exports["lzrgaDiscord"]:getUserStatus(userId --[[ integer ]]) --[[ returns: online/dnd/etc. ]]
-- Get User Biography
exports["lzrgaDiscord"]:getUserBio(userId --[[ integer ]]) ---[[ returns the user biography. ]]
You can do everything you want except selling this script that is free.
Soon i will update and add more data and functions to get better script that the thing that is right now.
Download Link: https://github.com/ZeskGarcia/lzrgaDiscord
Thanks and have a nice day
.
Script Data
| Code is accessible | Yes/No |
| Subscription-based | Yes/No |
| Lines (approximately) | +225 |
| Requirements | None |
| Support | Yes/No |