New Player & Anti troll

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

circle-info

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