Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 8e974c1

Browse files
committed
fix(runtime/event): use integer for playerId
1 parent c3cc89c commit 8e974c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/runtime/event.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function TriggerEvent(eventName, ...) end
4141
--- [Documentation](https://docs.fivem.net/docs/scripting-reference/runtimes/lua/functions/TriggerClientEvent/)<br>
4242
--- Triggers an event on the specified client(s) and passes on any additional arguments.
4343
---@param eventName string
44-
---@param playerId Player
44+
---@param playerId integer
4545
---@vararg ...
4646
function TriggerClientEvent(eventName, playerId, ...) end
4747

@@ -50,7 +50,7 @@ function TriggerClientEvent(eventName, playerId, ...) end
5050
--- This is important for timeout functionality, as sending a large amount of data blocks the network for the client, and if blocked for too long, will result in the client timing out.
5151
--- Latent events take an extra parameter `bps` which stands for 'bytes per second'; this defines how fast it should send data to the client.
5252
---@param eventName string
53-
---@param playerId Player
53+
---@param playerId integer
5454
---@param bps number
5555
---@vararg ...
5656
function TriggerLatentClientEvent(eventName, playerId, bps, ...) end

0 commit comments

Comments
 (0)