Skip to content

Instantly share code, notes, and snippets.

@Salcarman
Salcarman / rush.ts
Last active November 2, 2025 16:03
Battlefield 6 Portal - Custom Rush Map - SalcarmanGames Youtube Tutorials
/**
*
* Combat Area > Eliminar CombatVolume para que funcione los sectores
*
* Obj Ids:
* 1001: TEAM_1_HQ
* 1002: TEAM_2_HQ
* 1003: TEAM_2_HQ2
*
* 101: SectorA
@Salcarman
Salcarman / [qb]\qb-newsjob\client\main.lua
Last active March 23, 2025 16:50
Cómo funciona el trabajo de reportero de noticias + 2 Mejoras - Tutorial GTA V FiveM QBCore v1.3.0 [https://youtu.be/nrQAU0xGIAE]
-- Fichero a cambiar: [qb]\qb-newsjob\client\main.lua
-- Modificar la función CreateThread completa con este código
CreateThread(function()
while true do
Wait(1)
local inRange = false
if LocalPlayer.state.isLoggedIn then
local pos = GetEntityCoords(PlayerPedId())
if #(pos - vector3(Config.Locations["main"].coords.x, Config.Locations["main"].coords.y, Config.Locations["main"].coords.z)) < 1.5