Events

This event is triggered when a player has successfully selected a character and joined the server. It provides an opportunity to execute custom logic or initialize player-specific data based on the chosen character. The event is fired on both the client and server side

Client Side
SelectedCharacter
RegisterNetEvent("vorp:SelectedCharacter", function(charid)
   print(charid)
end)
Server Side
SelectedCharacter
AddEventHandler("vorp:SelectedCharacter",function(source,character)
    print(character)
end)

This event is triggered when a player has created a new character for the server. Example Usage Case: Someone might use this to create/select a first spawn location for a character.

Client Side
initNewCharacter
AddEventHandler("vorp:initNewCharacter", function()
    print("New Character Created")
end)

Functions

This function retrieves all components in the player’s cache. It is useful for updating or modifying the player’s appearance based on the components stored in the cache.

Client Side

StateBags

Bandana state you can use this in ohter script to check if player is wearing a bandana on his face using characters bandana commands

LocalPlayer.state.IsBandanaOn

check if player is in character shops

LocalPlayer.state.PlayerIsInCharacterShops