Exports
A full list of our community edition exports for use in any custom or third party scripts.
We've added these exports to the community edition to allow any FiveM/RedM communities to utilise them.
We've ensured every export can be used on client or server sided resources which massively simplifies the work required to use our tools. Yes, this includes getting data from server to the clients and the reverse!
Discord
We have a variety of Discord integrations, all of which are free in our community edition of the toolkit. You can use our exports below for permission checking in your resources or even third party resources such as the ones from London Studios.
DiscordCheckMembership
Allows you to check if the local user, or player server side, is a member of any of the Discord roles provided. You can pass a single string, or an array of any roles you want to check.
exports["crToolkit"]:DiscordCheckMembership("Legends")
exports["crToolkit"]:DiscordCheckMembership({"Legends", "Heroes"})
exports["crToolkit"]:DiscordCheckMembership(player, "Legends")
exports["crToolkit"]:DiscordCheckMembership(player, {"Legends", "Heroes"})
if exports["crToolkit"]:DiscordCheckMembership("Legends") then
print ("You're a legend!")
end
if exports["crToolkit"]:DiscordCheckMembership({"Legends", "Heroes"}) then
print ("You're a legend and/or a hero!")
end
When using server side, it requires the player ID. More information on player IDs can be found here.
Last updated
Was this helpful?