fix range, dimension and drawdistance
This commit is contained in:
@@ -21,10 +21,13 @@ export default function playerBlips() {
|
|||||||
(player) => {
|
(player) => {
|
||||||
if (mp.players.local == player)
|
if (mp.players.local == player)
|
||||||
return;
|
return;
|
||||||
if (mp.players.local.position.subtract(player.position).length() > 400)
|
|
||||||
return;
|
|
||||||
if (!playerBlipMap.has(player)) {
|
if (!playerBlipMap.has(player)) {
|
||||||
let pBlip = mp.blips.new(1, player.position);
|
let pBlip = mp.blips.new(1, player.position, {
|
||||||
|
shortRange: true,
|
||||||
|
dimension: mp.players.local.dimension,
|
||||||
|
drawDistance: 300
|
||||||
|
});
|
||||||
|
|
||||||
mp.game.invoke(Natives.SET_BLIP_CATEGORY, pBlip, 7);
|
mp.game.invoke(Natives.SET_BLIP_CATEGORY, pBlip, 7);
|
||||||
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, pBlip, true);
|
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, pBlip, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user