OSP Development
Ambulance Job
Ambulance Job
  • 👋Welcome to OSP Development
  • Overview
    • 💡Showcase
  • In-Game Use
    • 📪Overview
    • 🛏️Stretcher
    • 📺ICU Screens
    • 🎒Medical Equipment
    • 🩻Xray
    • Skelly
  • Developer usage
    • 📞Dispatch Integration
    • 👨‍💻Developer Usage
    • 💀isDead function
    • 💉Custom Medication
    • FFA/Paintball Integration
    • Inventory Items
    • society/banking exports
    • Custom Deathscreen
  • FAQ
    • ❌Issues
    • ❓General
Powered by GitBook
On this page
  • Error: syntax error near '<\1>'
  • Got any player/server related issues?
  • Got issues or errors with spawning in vehicles from the garage?
  • Got inventory related issues?
  • Got bugged death animations whilst using qbox framework?
  • Are you having issues with inventory, phone or other scripts not opening/working after dying and getting revived?
  1. FAQ

Issues

Here are some frequently asked questions about error or issues regarding the script, have you got any of the following issues, make sure the follow the instructions below!

PreviousCustom DeathscreenNextGeneral

Last updated 3 months ago

Error: syntax error near '<\1>'

Are you experiencing syntax errors in locked lua files?

There are two possible ways why this error occurs

  • You have used FileZilla which is breaking the structure of the script so please use WinSCP which works as expected and doesn't break anything. If you did not use FileZilla but you "drag and drop it" with Remote Desktop Control that will still damage it, so please drag and drop the zip and unzip it on server do not move it with method "file by file"\

  • Your server is outdated and needs to be at least 4752 or greater.


Got any player/server related issues?

Are you encountering any issues that involves other players? Example when using the medical ui or stretcher?

  1. Make sure that you use up-to-date artifacts, which can be found here:

  2. Make sure that you have onesync infinity enabled in txadmin.

  3. Still got issues? Open a ticket in our discord, explaning the issue thoroughly.


Are you having these exact errors when using the medical ui?

Then please make sure that you are using onesync infinity, as otherwise statebags won't work.


Are you having this exact native error when restarting the script?

This error might happen when restarting the script, and essentially means that the gfx files in the script were unable to load, resulting in a native error and making the 3d DUI screens stop working. To resolve this, simply restart the server and everything should be working again.


Got issues or errors with spawning in vehicles from the garage?

Do you get an error or nothing happening when trying to open the garage menu? If so, make sure that all your job grades have coresponding vehicle in the config. If you have more than 4 job grades you'll need to configure more vehicles for the increased grades.

For example if you have more than 4 grades, just add another by increaseing the index by one.

Config.AuthorizedVehicles = { -- Vehicles players can use based on their ambulance job grade level
	-- Grade 0
	[0] = {
		["ambulance"] = "Ambulance",
	},
	-- Grade 1
	[1] = {
		["ambulance"] = "Ambulance",
	},
	-- Grade 2
	[2] = {
		["ambulance"] = "Ambulance",
	},
	-- Grade 3
	[3] = {
		["ambulance"] = "Ambulance",
	},
	-- Grade 4
	[4] = {
		["ambulance"] = "Ambulance",
	}, -- REMEMBER TO ADD A COMMA IF YOU ADD MORE
	-- NEW Grade 5
	[5] = {
		["ambulance"] = "Ambulance",
	}
}

Got inventory related issues?

If you have got any inventory related issues, make sure the script is setup to use your inventory.

If you use qb or inventory default inventories the config value for Config.UsedInventory should be the default value of = '' Like following.

Config.UsedInventory = '' -- qs or ox or nothing/empty=(default)

And if you use qs or ox, the value should ofcourse be changed to = 'ox' or = 'qs'


Got bugged death animations whilst using qbox framework?

Qbox does by default have two medical scripts that conflict with osp_ambulance. Please remove them before using the ambulancejob. These are called: qbx_ambulance and qbx_medical


Are you having issues with inventory, phone or other scripts not opening/working after dying and getting revived?

Then that's most likely due to the scripts listening to certain revive events, to re-enable the functions of the script. In the config or integration files, look for death and spawn events, and replace them with the following event names:

osp_ambulance:OnPlayerDead
osp_ambulance:OnPlayerSpawn
❌
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/