Agency Docs
QBESXStandalone

Agency-Zero Exports & API

A self driving electric four seater for FiveM, free of charge.

v27.0Grátis6 PáginasA partir de September 13, 2026, 20:00 CEST

01Client Exports

ExportDescrição
ZeroStatus()Returns the state of the player's own Project 0: whether it exists, where it is, battery, range and whether a ride is running.
ZeroCall()Calls the car to the player. It drives there and parks at the kerb next to them.
ZeroDeliver()Has the car delivered when it is not on the map. Costs Config.Remote.deliveryFee, free without a framework.
ZeroGarage()Sends the car back to its garage.
ZeroCancel()Cancels a running call or ride.
ZeroFind()Shows the bearing to the car at the bottom of the screen for Config.Remote.findRadarSeconds seconds.
ZeroDoors(on)Opens the doors with true, closes them with false. They move in a wave, not all at once.
ZeroLock(on)Locks the car with true, unlocks it with false.
ZeroLights(on)Turns the lights on and off.
ZeroBuyInfo()Returns whether the player may buy a Project 0 and what it costs. Someone who already owns one gets nothing back.
ZeroBuy()Buys a Project 0 for this player. The car is bound to them in the same step.
ZeroRefresh()Reads the state again, for a UI that wants fresh numbers without waiting for the next tick.
IsRideActive()Returns true while an autonomous ride is running.
CallProjectZero()Starts a ride to the current destination. Without one, the map waypoint is used.
CancelProjectZero()Ends the ride. The car pulls over and stops.
IsCockpitOpen()Returns true while the tablet in the dashboard is on screen.
IsManualOverride()Returns true when the driver has taken the wheel. Without the override the Zero only drives itself.
AnyDoorOpen(veh)Returns true when at least one door of that vehicle is open.
OpenDoors(veh, opts)Opens the doors of a vehicle in the wave animation.
CloseDoors(veh, opts)Closes them again.
AnimateDoors(veh, open, opts)Opens or closes depending on the second argument, for code that decides at runtime.
SoundChipOf(veh)Returns the sound chip fitted to that car. Changing the chip changes the engine, never the radio.

02Server Exports

ExportDescrição
IsPro(src)Returns true when this player's Zero runs in the Pro version. The verdict comes from the HMAC handshake with the genuine Agency Phone, never from the client.
ZeroVin(plate)Returns the vehicle number behind a plate. Every Project 0 gets one when it is handed out and keeps it for good.
ZeroCarsOf(src)Returns every Project 0 this player owns, with number, plate, tuning stage and statistics.
ZeroSync(src)Writes the registry state to this player again, for example after another script changed ownership.

03Eventos

NomeLadoDescrição
agency-zero:client:rideStartedA ride has started. Carries the destination.
agency-zero:client:rideEndedThe ride is over, cancelled or arrived.
agency-zero:client:arrivedThe car has reached the player and opened its doors.

Continuas sem avançar depois desta página? O nosso suporte assume daqui.