SetCore callback

I am trying to figure out if there is a callback for certain options specifically with the friend request/unfriend functions.

I have tried doing:

StarterGui:SetCore("PromptSendFriendRequest", player, function(...)
    print(...)
end)

but it doesn’t seem to work. It doesn’t error, nor does it do anything. Is there a callback for this? If I can suggest one to be added I’d love to have one added as Player:GetFriendsOnline() caches and I won’t be able to update my UI.

From the roblox wiki you can see that it requires you to pass through so it prompts them, this however does not have an option where you can check if the event is being fired.

As you can see the only type is Player, where as for ResetButtonCallBack accepts to ways, one of which you can listen to the event be fired and execute a function:

I really don’t know if there is a function available to us for this though I know there is but we cannot use it as its restricted to CoreGuis

1 Like

No, there are no callback options. You can only use SetCore to send a friend request but you can’t control the behavior of buttons. PromptSendFriendRequest only accepts a player argument. Remove the function value and you’re good to go.