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
| /** | |
| * | |
| * 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 |
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
| -- 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 |