Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GTA;
- using GTA.Native;
- using System;
- using System.Windows.Forms;
- namespace VagosDoors
- {
- public class Main : Script
- {
- bool Initialized = false;
- public Main()
- {
- Tick += OnTick;
- }
- void RequestIpl(string iplName)
- {
- if (!Function.Call<bool>(Hash.IS_IPL_ACTIVE, iplName))
- {
- Function.Call(Hash.REQUEST_IPL, iplName);
- }
- }
- void OnTick(object sender, EventArgs e)
- {
- if (!Initialized)
- {
- Script.Wait(1000);
- RequestIpl("bkr_bi_id1_23_door");
- Initialized = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement