Transition
Export Function
exports["ab_Hud"]:Transition(teleportPosition, WaitTime)
Parameters:
- teleportPosition: The target coordinates for the teleport.
- WaitTime: The duration of the transition. Must be greater than
2seconds.
Important:
- If
WaitTimeis set to a value less than2, it will default to2seconds to ensure a smooth transition.
Server-Side Event
To trigger the transition from the server-side, use the following code:
TriggerClientEvent("0xHud:Transition", source, teleportPosition, WaitTime)
Parameters:
- source: The player ID to whom the transition is being sent.
- teleportPosition: The target coordinates for the teleport.
- WaitTime: The duration of the transition.