qbcore-framework / qb-weathersync

Weather System Used With QB-Core :sun_behind_rain_cloud:
GNU General Public License v3.0
23 stars 142 forks source link

Fix (server): check if source is server #43

Closed Lionh34rt closed 2 years ago

Lionh34rt commented 2 years ago

Triggering the blackout event (and the others I presume) from another script on the server side resulted in src being '' (Type: string). Therefore the isAllowedToChange function always resulted false.

Discussed this with Tony and this is the fix he came up with