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
RegisterCommand('dv', function() | |
local ped = PlayerPedId() | |
local veh = GetVehiclePedIsIn(ped, false) | |
SetEntityAsMissionEntity(veh, true, true) | |
DeleteVehicle(veh) | |
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
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) |
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
RegisterCommand('serverId', function() | |
print(GetPlayerServerId(PlayerId())) | |
end, false) |
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
@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 |