Add Edit-Mode, Hotkey-Blip-Saves
This commit is contained in:
22
Main.cs
22
Main.cs
@@ -41,6 +41,28 @@ namespace reallife_gamemode
|
||||
context.Users.FirstOrDefault();
|
||||
context.SaveChanges();
|
||||
}
|
||||
|
||||
TempBlip tempBlip = new TempBlip()
|
||||
{
|
||||
Color = 1,
|
||||
Name = "",
|
||||
Transparency = 0,
|
||||
ShortRange = true,
|
||||
Sprite = 1,
|
||||
Scale = 1,
|
||||
};
|
||||
|
||||
NAPI.Data.SetWorldData("blipTemplate", tempBlip);
|
||||
}
|
||||
}
|
||||
|
||||
public class TempBlip
|
||||
{
|
||||
public byte Color { get; set; }
|
||||
public string Name { get; set; }
|
||||
public byte Transparency { get; set; }
|
||||
public bool ShortRange { get; set; }
|
||||
public uint Sprite { get; set; }
|
||||
public float Scale { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user