This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Generate icons for a Tauri Application | |
| ---------------------- | |
| By Ibai Farina | |
| For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio). | |
| """ | |
| __title__ = 'Tauri Icon Generator' | |
| __author__ = 'Ibai Farina' | |
| __license__ = 'MIT' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print("Loading light client.lua") | |
| local lights = { | |
| "h4_prop_battle_lights_fx_riga", | |
| "h4_prop_battle_lights_fx_rigb", | |
| "h4_prop_battle_lights_fx_rigc", | |
| "h4_prop_battle_lights_fx_rigd", | |
| "h4_prop_battle_lights_fx_rige", | |
| "h4_prop_battle_lights_fx_rigf", | |
| "h4_prop_battle_lights_fx_rigg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ INTERNAL FUNCTIONS ]]-- | |
| function getQueryOutfit(blob) | |
| local lockHash = string.unpack('<i4', blob, 1) | |
| local hash = string.unpack('<i4', blob, 9) | |
| local price = string.unpack('<i4', blob, 17) | |
| local unk1 = string.unpack('<i4', blob, 25) | |
| local totalItems = string.unpack('<i4', blob, 33) | |
| local unk2 = string.unpack('<i4', blob, 41) | |
| local unk3 = string.unpack('<i4', blob, 49) | |
| local gxt = string.unpack('z', blob, 57) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ INTERNAL FUNCTIONS ]]-- | |
| function getQueryOutfit(blob) | |
| local lockHash = string.unpack('<i4', blob, 1) | |
| local hash = string.unpack('<i4', blob, 9) | |
| local price = string.unpack('<i4', blob, 17) | |
| local unk1 = string.unpack('<i4', blob, 25) | |
| local totalItems = string.unpack('<i4', blob, 33) | |
| local unk2 = string.unpack('<i4', blob, 41) | |
| local unk3 = string.unpack('<i4', blob, 49) | |
| local gxt = string.unpack('z', blob, 57) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Curiosity.Framework.Server.Models; | |
| using Dapper; | |
| using Logger; // FxEvents on NuGet | |
| using MySqlConnector; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using System.Text; | |
| using Debug = CitizenFX.Core.Debug; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SetToggleMinimapHeistIsland(true) -- Range check to enable/disable | |
| LoadGlobalWaterType(1) -- Range check to enable/disable | |
| SetAiGlobalPathNodesType(1) -- Range check to enable/disable (if changed too close to the island will crash | |
| SetScenarioGroupEnabled("Heist_Island_Peds", true) | |
| RequestIpl("h4_islandx_disc_StrandedWhale") | |
| RequestIpl("h4_islandx_disc_StrandedShark") | |
| RequestIpl("h4_islandairstrip") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static int[][] GetCharacterOutfitSettings(bool isMale, int iParam1) | |
| { | |
| var components = new int[12]; | |
| var textures = new int[12]; | |
| for (int i = 0; i < 12; i++) | |
| { | |
| components[i] = -1; | |
| textures[i] = -1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- add the following metadata to your fxmanifest.lua | |
| version 'v1.0.0' | |
| repository 'https://github.com/<USER or ORGANISATION>/<REPOSITORY NAME>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AddEventHandler("onClientResourceStart", function(resourceName) | |
| if resourceName ~= GetCurrentResourceName() then | |
| return; | |
| end; | |
| AddCommands(); | |
| end); | |
| function AddCommands() | |
| TriggerEvent("chat:addSuggestion", "/nc", "Toggle no clip", {}); | |
| TriggerEvent("chat:addSuggestion", "/rc", "reload clothes", {}); |
NewerOlder