This file contains 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
-- This library provide high level turtle movement functions. | |
-- | |
-- Before being able to use them, you should start the GPS with egps.startGPS() | |
-- then get your current location with egps.setLocationFromGPS(). | |
-- egps.forward(), egps.back(), egps.up(), egps.down(), egps.turnLeft(), egps.turnRight() | |
-- replace the standard turtle functions. | |
-- If you need to use the standard functions, you | |
-- should call egps.setLocationFromGPS() again before using any egps functions. | |
-- Gist at: https://gist.github.com/SquidLord/4741746 |
This file contains 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
+ cat /proc/meminfo | |
MemTotal: 16380188 kB | |
MemFree: 5078732 kB | |
MemAvailable: 7298544 kB | |
Buffers: 197704 kB | |
Cached: 2314136 kB | |
SwapCached: 108680 kB | |
Active: 7717128 kB | |
Inactive: 2753152 kB | |
Active(anon): 6676140 kB |
This file contains 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 System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using CitizenFX.Core; | |
using CitizenFX.Core.Native; | |
using CitizenFX.Core.UI; | |
using JetBrains.Annotations; |
This file contains 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
TriggerEvent('skinchanger:loadDefaultModel', sex, function() | |
-- сюда поместить код который должен быть исполнен когда дефолтный скин загрузится | |
end) |
This file contains 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
Citizen.CreztrThread(function() | |
local vehicle | |
while true | |
local newVehicle = GetVehicle(...) | |
if newVehicle ~= vehicle then | |
-- переменная изменилась | |
end | |
This file contains 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
local CurrentAction | |
-- цикл для проверки что мы внутри маркера | |
Citizen.CreateThread(function() | |
local ped = GetPlayerPed(-1) | |
local coords = GetEntityCoords(playerPed) | |
while true do | |
Wait(50) -- кадлые 50 фреймов поскольку GetDistanceBetweenCoords тяжелая операция | |
if GetDistanceBetweenCoords(coords, Config.MarkerSet.x, Config.MarkerSet.y, Config.MarkerSet.z, true) < Config.MarkerSize.x then |
This file contains 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
if CurrentAction ~= nil then | |
if IsPedInAnyVehicle(playerPed, false) then | |
-- тут твой код | |
else | |
-- оригинальный код | |
end | |
end |
This file contains 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
{ | |
"height":"150", | |
"impression_group":"6ebbc172-57c8-4f24-968e-905e1a309bda", | |
"analytics":[ | |
], | |
"width":"100%", | |
"cookie_syncs":[ | |
], |
This file contains 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
#!/usr/bin/env bash | |
set -e -o xtrace | |
VERSION=$MINECRAFT_VERSION-$FORGE_VERSION-$MINECRAFT_VERSION | |
FORGE_INSTALLER=forge-$VERSION-installer.jar | |
FORGE_UNIVERSAL=forge-$VERSION-universal.jar | |
echo eula=true > eula.txt |