Joto65 Posted October 12, 2021 Posted October 12, 2021 Two different js scripts, which work fine if C# is disabled, suddenly stopped working when I enabled c# to use salty-voice. Error Message in Console: "Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.at void Bootstrapper.EventInternalClass.OnPlayerEnterColshape(ushort playerId, ushort colshapeId)" the code in one of the js files: mp.events.add("playerEnterColshape", (player, shape) => { if (shape.clothingShopType && typeof player.clothingShopType !== "string") player.clothingShopType = shape.clothingShopType; });
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now