Configuration
The configuration for the resource is all contained within sh_config.lua
in the root directory of the resource and allows for configurating max characters, where characters are positioned, character effects, character spawns and which frameworks to use.
Framework
Which framework is being used by the server
Supported frameworks
See frameworks for framework specfic installation steps
Appearance
Which appearance resource used by the server
Supported appearance resources
Max characters
How many characters the resource will allow you to create. If a player already has more characters than the maximum they still will be able to see them all.
Spawns
Contains the positions for each spawn choice when a new character is created.
- Only 6 spawns are supported.
- Thumbnail images for each spawn can be changed, see here
- Spawns can be handled by another resource, see here
Character peds
A list of character peds, contains the model, location, camera angles and animation used by every ped.
Character ped options
- model:
string | number
- position:
vector4
- freeze?:
boolean
- anim?:
PedAnimationOptions
- scenario?:
PedScenarioOptions
- camera?:
PedCameraOptions
- lookAt?:
vector3
- effect?:
string
Go here for a breakdown of types
Model
The model to use for the ped, this is only used on empty character slots.
A list of ped models can be found here
Position
The position where the ped will be spawned
- x:
number
- y:
number
- z:
number
- w:
number
(heading)
Freeze
Whether to freeze the ped directly after being spawned, this is useful if the ped floats in the air.
Animation / Scenario
Using an animation or scenario is optional but only one can be used for each ped
Animation
Plays an animation on the character ped after being placed at a position
- dictionary:
string
- animation:
string
- duration:
integer
- flags:
AnimFlags | integer
- positionOffset?:
vector3
- rotationOffset?:
vector3
- blendInDelta?:
AnimBlend | number
- blendOutDelta?:
AnimBlend | number
- timeToPlay?:
number
- startPhase?:
number
- phaseControlled?:
boolean
- ikFlags?:
integer
- freeze?:
boolean
Scenario
Plays a scenario on the character ped after being placed at a position
- scenario:
string
- duration:
number
- positionOffset?:
vector3
- playIntro?:
boolean
- warp?:
boolean
Camera
The camera settings controls where the camera is located and where the camera is pointing at, by default the camera is always located in front of the character ped and is pointed at the character.
- positionOffset?:
vector3
- targetOffset?:
vector3
- boneId?:
integer
- The position of the character ped camera is offset relative to the ped’s position
- The target where the camera is pointing at is offset relative to the ped’s position
Look At
The lookAt
option controls where the character peds is actually looking, for example this can be used to make the character look towards the camera when it may not be facing towards it.
- The lookAt option position an offset relative to the character peds position.
Effect
Allows an effect to be played on the character ped when clicking outside of the interface when selecting a character. The effect system is how the falling effect is achieved.
effect
simply takes the name of an effect and is optional- Additional effects can be created see here for a guide.