@nj5050
I forgot to specify but I'm using: ScriptHookVDotNet-v3.6.0-nightly.124 and here's the error log:
[23:08:11] [ERROR] Caught unhandled exception:
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à AdvancedBodyguards.CreateSquad(Int32 squadNumber)
à AdvancedBodyguards.OnItemSelect(UIMenu sender, UIMenuItem selectedItem, Int32 index)
à NativeUI.UIMenu.SelectItem()
à NativeUI.UIMenu.ProcessControl(Keys key)
à NativeUI.MenuPool.ProcessControl()
à NativeUI.MenuPool.ProcessMenus()
à AdvancedBodyguards.OnTick(Object sender, EventArgs e)
à SHVDN.Script.DoTick()
[23:08:11] [ERROR] The exception was thrown while executing the script AdvancedBodyguards from \Grand Theft Auto V\scripts\Advance bodyguard\Advanced Bodyguards.dll".
[23:08:11] [WARNING] Aborted script AdvancedBodyguards.
à System.Threading.Thread.AbortInternal()
à System.Threading.Thread.Abort()
à SHVDN.Script.Abort()
à SHVDN.Script.DoTick()
à SHVDN.Script.MainLoop()