Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2023-07-31 21:20:56 +02:00

20 lines
529 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CitizenFX.Core;
using CitizenFX.Core.Native;
namespace Framework.Client.Utils {
public static class Util {
public static IEnumerable<T> GetEnumValues<T>() => Enum.GetValues(typeof(T)).Cast<T>();
public static async Task LoadModel(Model model) {
API.RequestModel((uint)model);
while (!model.IsLoaded) {
await BaseScript.Delay(0);
}
}
}
}