Skip to content

GTA V: Zancudo Gates

Bob74 edited this page Jan 14, 2019 · 1 revision

Getting the main object to interact with the interior:

ZancudoGates = exports['bob74_ipl']:GetZancudoGatesObject()

Coordinates

This ipl can be found at:

X Y Z
-1600.301 2806.731 18.796

Object structure

ZancudoGates
  +-- Gates
  |   +-- Open
  |   +-- Close
  +-- LoadDefault()

Gates

Open or close the gates:

ZancudoGates.Gates.Open()
ZancudoGates.Gates.Close()

Default values set by bob74_ipl

LoadDefault = function()
    ZancudoGates.Gates.Open()
end

Example: How to use in your own resources

You can handle the gates in your own resources using the exported functions:

Citizen.CreateThread(function()
    -- Getting the object to interact with
    ZancudoGates = exports['bob74_ipl']:GetZancudoGatesObject()

    -- Closes the gates (GTA Online like)
    ZancudoGates.Close()
end)
Clone this wiki locally