npm install --save-dev prettier
{
{ | |
"Functional Component Export": { | |
"prefix": "fce", | |
"body": [ | |
"const $1 = () => {", | |
" return <div>$1</div>;", | |
"};", | |
"", | |
"export default $1;" | |
] |
RegisterCommand('dv', function() | |
local ped = PlayerPedId() | |
local veh = GetVehiclePedIsIn(ped, false) | |
SetEntityAsMissionEntity(veh, true, true) | |
DeleteVehicle(veh) | |
end) |
RegisterCommand('upgrade', function() | |
local ped = PlayerPedId() | |
local vehicle = GetVehiclePedIsIn(ped, false) | |
local modTypes = {11, 12, 13, 15, 16} | |
SetVehicleModKit(vehicle, 0) -- must call to apply mods | |
for _, modType in ipairs(modTypes) do | |
local maxMod = GetNumVehicleMods(vehicle, modType) - 1 | |
SetVehicleMod(vehicle, modType, maxMod, false) |
RegisterCommand('serverId', function() | |
print(GetPlayerServerId(PlayerId())) | |
end, false) |
@echo off | |
%~dp0\..\server\FXServer.exe +exec server.cfg | |
@REM Delete Server Cache | |
@REM @echo off | |
@REM :choice | |
@REM set /P c=Would you like to delete the server cache? [Y/N] | |
@REM if /I "%c%" EQU "Y" goto :delete_cache | |
@REM if /I "%c%" EQU "N" goto :start_server |