FocusedEvent

Execute an client sided event focused to the current player

Parameters description

Parameter
Type
Description
Default

eventName

string

the client sided event name

----

...

any?

the event parameters

----

Example

HRLib.RegCommand('freeze', true, true, function(args, _, IPlayer, FPlayer)
    local targetId = tonumber(args[1])
    FPlayer.FocusedEvent('test:freezePlayer', not IsEntityPositionFrozen(targetId))
end, true)

Last updated