Luman Studio
TebexDiscordYouTube
  • Documentation
  • FiveM Scripts
    • Squid Game
      • Doll Game
        • Installation
        • Customization
      • Dalgona Game
        • Installation
        • Customization
        • Manual Mode
      • Crystal Game
        • Installation
        • Customization
      • Mingle Game
        • Installation
        • Customization
      • Lobby MLO
        • Installation
        • Customization
  • Ghostbusters
    • Installation
    • Customization
  • Flatout Game
    • Ski Stunt
      • Installation
      • Customization
    • Cannon Stunt
      • Installation
      • Customization
  • Easter Game
    • Installation
    • Customization
  • RedM Scripts
    • Dragon Rider
      • Installation
      • Config and Permissions
      • More Dragons
      • Events
    • Bear Trap
      • Installation
      • Customization
    • Red Light
      • Installation
      • Customization
Powered by GitBook
On this page
  1. RedM Scripts
  2. Dragon Rider

Events

Integration into scripts

You can use event like this to trigger the dragon spawn/despawn:

-- server.lua
TriggerClientEvent('luman-dragon:spawnDragonOrDespawnIfExists', playerId, dragonIndex)

playerId - player server ID

dragonIndex - dragon number as it is ordered via config.lua.

PreviousMore DragonsNextBear Trap

Last updated 2 months ago