easyCore Roblox Framework API Information

This is api documentation for paid-roblox version, for FiveM go here: easyCore FiveM Framework API Information - #3

Public API

easyCore.init()

Init the framework

easyCore.Player

Interact with a easyCore Player.

local Data = easyCore.GetPlayerData(Player)
Data.SetCash(Amount)

easyCore.SetCash(Amount: number)

easyCore.AddCash(Amount: number)

easyCore.RemoveCash(Amount: number)

easyCore.SetBank(Amount: number)

easyCore.AddBank(Amount: number)

easyCore.RemoveBank(Amount: number)

easyCore.Notifications

Interact with a easyCore Notification System.

easyCore.Notify(Player: player, Title, Body, Duration (recommend 5))

easyCore.Notify(Player: player, Title: string, Body: string, Duration: number)

easyCore.NotifyAll(Title: string, Body: string, Duration: number)

easyCore.Interactions

Interact with a easyCore Interaction Prompt System.

easyCore.CreatePrompt(workspace.Part, "hello", "world", Enum.KeyCode.E, 5, 10, function(Player)
	print("hi")
end)

easyCore.CreatePrompt(Title: string, Bottom: string, HoldDuration: number, MaxActivationDistance: number, KeyCode: Enum Keycode, Callback: function)

easyCore.RegisterKeybindWithCallback(Player: player, Key: string, EnumKey: Enum.KeyCode, Label: string, Callback: function)

This function is used for writing interaction instructions on the bottom right of your screen & triggering a callback when a player presses the keybind.

local admin = easyCore.RegisterKeybindWithCallback(Player, "E", Enum.KeyCode.E, "Inventory", function(Player)
	-- gui
end)

admin.RenameLabel("hi")
admin.Delete()

easyCore.Network

Interact easily with RemoteFunctions, RemoteEvents, and BindableEvents.

local RemoteFunction = easyCore.RegisterEventFunction(tostring(REFID), function(PS, REFID)
      if PS ~= Player then return end
      KeybindsCache[REFID]()
end)

easyCore.RegisterEvent(Name: string, IsShared: boolean, Callback: function (returns player (or not at all if bindable) & inf amount of args))

easyCore.RegisterEventFunction(Name: string, Callback: function (returns player))

Credits

@Jake Project Leader
@verbxtim Software Engineer
@pasdalover Software Engineer
@ant Creative Advisor