Check for server elements on spawn
This commit is contained in:
@@ -596,6 +596,7 @@ async function onPlayerSpawn(client) {
|
||||
|
||||
setPlayerWeaponDamageEvent(client, AGRP_WEAPON_DAMAGE_EVENT_NORMAL);
|
||||
|
||||
if (areServerElementsSupported()) {
|
||||
if (getGlobalConfig().playerStreamInDistance == -1 || getGlobalConfig().playerStreamOutDistance == -1) {
|
||||
getPlayerPed(client).netFlags.distanceStreaming = false;
|
||||
} else {
|
||||
@@ -604,6 +605,7 @@ async function onPlayerSpawn(client) {
|
||||
}
|
||||
|
||||
resetPlayerBlip(client);
|
||||
}
|
||||
|
||||
// Radio stuff must be last thing sent to client because it hangs the client for a second, which blocks processing of other incoming packets
|
||||
// Start playing business/house radio if in one
|
||||
|
||||
Reference in New Issue
Block a user