Skip to content

Instantly share code, notes, and snippets.

View Sasino97's full-sized avatar
💻
Working on Cops and Robbers

Sal Strazzullo Sasino97

💻
Working on Cops and Robbers
View GitHub Profile
@Sasino97
Sasino97 / ClientScript.cs
Created February 17, 2021 02:40
TriggerEventAsyncInternal<T>
using CitizenFX.Core;
using System;
using System.Threading.Tasks;
using static CitizenFX.Core.Native.API;
public abstract class ClientScript : BaseScript
{
private async Task<T> TriggerEventAsyncInternal<T>(string eventName, int timeout, bool server, params object[] args)
{