-
Notifications
You must be signed in to change notification settings - Fork 0
Home
root-cause edited this page Apr 18, 2020
·
1 revision
AreaLibrary is a Script Hook V .NET library that aims to simplify distance checking in Script Hook V .NET projects by providing areas and raising events when needed.
-
Event based
- AreaLibrary raises events when the player ped/a tracked entity enters/leaves a defined area. (Example: AreaExample.cs)
-
Area data
- Scripters can store data in defined areas by using SetData method of areas. (Example: AreaWithCustomDataExample.cs)
-
Entity tracking
- Scripters can make AreaLibrary track non-player entities entering/leaving a defined area. (Example: AreaWithTrackedEntityExample.cs)
-
Extensible
- Scripters can implement custom areas/shapes by inheriting AreaBase class.
- Make sure your project has Script Hook V .NET v2.10.12 as a reference.
- Download the latest stable version from here.
- Add the .dll to your project as a reference.
- Import by adding
using AreaLib;to your code.
IMPORTANT: Script developers should not redistribute AreaLibrary.dll as it might cause people to have outdated versions in the future, it's better to send people to the releases page.
For now, refer to AreaLibrary.xml (inside AreaLibrary.zip) and example scripts.
More example scripts might be added in the future.