New Player & Anti troll

Here you can find the installation for cas-newplayer script.

Available Frameworks: RSG and VORP

About Script

With our New Player Limit Script, fresh players will have restrictions preventing them from shooting or taking hostile actions against others until they’ve spent enough time in the game. This ensures a fair and safe environment for everyone, especially newcomers.

πŸ“„ VORP Core Integration Instructions

To integrate with vorp_core, you need to modify the vorp_core/client/spawnplayer.lua file.

Specifically, you must extend the existing vorp:initCharacter event to include the custom character initialization.

Here’s how to do it properly:

✏️ Steps

  1. Locate the vorp:initCharacter event handler inside vorp_core/client/spawnplayer.lua.

  2. At the very end of the vorp:initCharacter function, add the following trigger:

TriggerEvent("vorp:initCharCustom", coords, heading, isdead)

This ensures your custom initialization runs after the player has fully loaded.


πŸ› οΈ Example: Full Modified vorp:initCharacter


πŸ“Œ Important Notes

  • Do not replace the existing vorp:initCharacter logic.

  • Only add TriggerEvent("vorp:initCharCustom", coords, heading, isdead) at the very end of the handler.

  • This ensures compatibility with VORP Core and adds your custom handling without breaking the default flow.

Installation

Plug & play

Configuration

Last updated