Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PLAYER_EVENT_ON_CAN_GROUP_INVITE #100

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

r-o-b-o-t-o
Copy link
Member

Adds a new Player event:

PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55 // (event, player, memberName) - Can return false to prevent inviting

Example Lua snippet:

local PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55

RegisterPlayerEvent(PLAYER_EVENT_ON_CAN_GROUP_INVITE, function(event, player, newMemberName)
	print("Player: " .. player:GetName())
	print("Invited: " .. newMemberName)

	return false -- prevent inviting
end)

@r-o-b-o-t-o r-o-b-o-t-o added the enhancement New feature or request label Feb 28, 2023
@r-o-b-o-t-o r-o-b-o-t-o merged commit 85714c1 into master Mar 1, 2023
@r-o-b-o-t-o r-o-b-o-t-o deleted the feat/can-group-invite branch March 1, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants