client
StartScreenEffect
FiveM client native documentation with a Lua example.
Summary
Starts a screen post-FX effect (drunk, death, focus, etc.). Used for status effects like intoxication, damage, or special abilities.
Returns
void
Parameters
effectNamestringThe effect name (e.g. 'DrugsMichaelAliensFight').durationnumberDuration in ms, 0 for indefinite.loopedbooleanWhether it loops.Example
StartScreenEffect('DrugsMichaelAliensFightIn', 0, true)
-- ... later
StopScreenEffect('DrugsMichaelAliensFightIn')Common pitfalls
- Remember to StopScreenEffect, or the effect sticks on screen.
- Effect names are fixed strings from GTA; keep a reference list.
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 →