Verse
Discord ServerTebex StoreWebsite
  • Home
  • Discord server
  • 🚑Ambulance Job
    • 🧠Configuration
    • 📚Guides
      • Adding a custom dispatch
    • ⁉️Common Errors
    • 🐌For Developers
      • Client Events
  • 💽Modular Website
    • ➕Installation
  • 👮Police Complaint
    • 🔌Adding Departments
    • 👀Examples
  • 📣Announcement
    • 🧠Installation
    • 👀Command examples
    • ⚡Events
  • 📕Exams
    • Functions
Powered by GitBook
On this page
  1. Ambulance Job
  2. Guides

Adding a custom dispatch

go to vrs-ambulance/client/modules/util.lua and find the Dispatch function. It should be on the first line

function Dispatch(location)
    local loc = location.xyz
    [...]

Find the second end from the end of the function

                    text = "Person Is Injured",
                    time = (3 * 60 * 1000), 
                }
            }
        )
    end -- This one!
end

add elseif Config.Dispatch == "custom" then on top of the end

It should look like this

                    time = (3 * 60 * 1000), -- 3 minutos
                }
            }
        )
    elseif Config.Dispatch == "custom" then
        -- Add your custom dispatch here
    end -- This one!
end

Then, you just need to add exports or an event from your dispatch. Also, don't forget to set Config.Dispatch to custom

Not working? Join our discord and we'll help you

PreviousGuidesNextCommon Errors

Last updated 10 months ago

🚑
📚
Cover

Join our discord server

Cover

Check out our Tebex store