client
TriggerLatentServerEvent
FiveM client native documentation with a Lua example.
Summary
Like TriggerServerEvent but sends large data at a rate limit (bytes/sec) to avoid flooding the network. Used for sending big payloads without hitching.
Returns
void
Parameters
eventNamestringThe server event.bytesPerSecondnumberRate limit for the transfer....anyArguments.Example
TriggerLatentServerEvent('myscript:bigData', 5000, hugeTable)Common pitfalls
- Use for large payloads only; normal events are fine for small data.
- Still validate everything server-side.
Related natives
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →