63 lines
3.4 KiB
Markdown
63 lines
3.4 KiB
Markdown
|

|
|||
|
|
|||
|
### ps-objectspawner
|
|||
|
A well thought out simplistic user-friendly experience for spawning objects around your server.
|
|||
|
|
|||
|

|
|||
|
|
|||
|
### Dependencies:
|
|||
|
* [qb-core](https://github.com/qbcore-framework/qb-core)
|
|||
|
* [qb-target](https://github.com/BerkieBb/qb-target)
|
|||
|
* [oxmysql](https://github.com/overextended/oxmysql)
|
|||
|
|
|||
|
### ⚠️Important:
|
|||
|
First, run the included sql file to create the `objects` table in your database. Also, the `/object` command will only work for players with `god` permissions, by default.
|
|||
|
If you have no permission to use the object command. Go to admin menu > Player Management > Select Player > Permission > Set Group to God > Confirm. Try again entering this command.
|
|||
|
|
|||
|
<br>
|
|||
|
|
|||
|

|
|||
|
|
|||
|
### Instructions:
|
|||
|
After creating the `objects` table and ensuring you have the `god` permission, use the `/object` command to open the spawning/management menu. In the Create menu, you can name and search for objects you would like to place in the world. You can also specify a spawning distance, that will determine when the object becomes visible to the player; this is specified in standard FiveM distance units. Finally, can add a type of target that the object will hold. We have provided an example (ex `container`) event/target that will create an inventory stash for the spawned object, but more can be added through the client code.
|
|||
|
|
|||
|
In the Manage menu, you will see all the objects you have added and information about each. You can also teleport to the objects and delete them, if needed.
|
|||
|
|
|||
|
Finally, the object hashes within the Search list are maintained in the included `objectlist` file.
|
|||
|
|
|||
|
<br>
|
|||
|
|
|||
|

|
|||
|
|
|||
|
|
|||
|
#### Some features to mention within this ps-objectspawner:
|
|||
|
* Spawn objects
|
|||
|
* Manage objects
|
|||
|
* Render distance for optimization
|
|||
|
* Teleport to objects placed
|
|||
|
|
|||
|
<br>
|
|||
|
|
|||
|

|
|||
|
|
|||
|
|
|||
|
### Time to show you what it looks like!
|
|||
|
Here's a few showcased examples while using ps-objectspawner.
|
|||
|
|
|||
|
#### Spawn object:
|
|||
|

|
|||
|
|
|||
|
#### Place object:
|
|||
|

|
|||
|
|
|||
|
#### Manage objects:
|
|||
|

|
|||
|
|
|||
|
#### Search for object:
|
|||
|

|
|||
|
|
|||
|
### Credits:
|
|||
|
Inspiration and some code snippets from [Svelte & Lua Boilerplate](https://github.com/project-error/svelte-lua-boilerplate) by [Project Error](https://github.com/project-error)
|
|||
|
|
|||
|
##### Copyright © 2022 Project Sloth. All rights reserved.
|