Code Monkey home page Code Monkey logo

ped_spawner's Introduction

ped_spawner

keeper An easily configurable ped spawner for fivem servers. Supports animations as well if you have the patience to find one you like.

Installation:

  • Place the file into the resources folder for your server.
  • Add 'ensure ped_spawner' to your server.cfg
  • Enjoy!

Configuration Options:

  • Config.Invincible: Makes the peds invincible.
  • Config.Frozen: Makes the peds unable to move.
  • Config.Stoic: Makes the peds unaware of their surroundings.
  • Config.MinusOne: If you need to subtract 1 from your Z-Axis coordinates when you grab them, set this to true. If you set it to false, all the default peds need to be adjusted.
  • Config.Distance: The distance you want peds to be spawned/deleted at.
  • Config.Fade: Allows peds to fade into/out of existence, rather than just popping in. The spawning process with this doesn't catch the eye as much.

Usage:

Below you can see an example of a code snippet you could use. Both the animDict and animName variables are completely optional.

  {
	  model = "s_m_y_xmech_02",
		coords = vector3(106.11213684082,6627.7666015625,31.787231445312), --PALETO BAY MECHANIC
		heading = 20.0, 
		gender = "male", 
		animDict = "missmechanic", 
		animName = "work_base",
  },

[1.1.0] - 2021-03-23

Added

  • Deletion of peds when player gets far enough away

Fixed

  • Took some of the config variables out of tables.

[1.2.0] - 2021-03-23

Added

  • Option to fadein/fadeout the peds
    fade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.