Giter Site home page Giter Site logo

Comments (3)

FPtje avatar FPtje commented on September 18, 2024

Give me a custom entity example that I can work with.

from darkrpmodification.

fantasticaneer avatar fantasticaneer commented on September 18, 2024

Here's a more concise explanation of what's happening:
In the first image I spawn five computers, the server limit for that entity: http://i.imgur.com/Imcc3mT.jpg
Then I remove them manually because you can't undo entities spawned in the misc menu, and I can't spawn any more because the script still thinks I have 5: http://i.imgur.com/1Dm9LQx.jpg

The entity i'm using:
http://steamcommunity.com/sharedfiles/filedetails/?id=109810455

The code in entities.lua in darkrpmodification, this will work if you mount the computer workshop addon:

AddEntity("Computer", {
ent = "sent_computer",
model = "models/props_lab/monitor01a.mdl",
price = 10,
max = 5,
cmd = "/buypc",
})

What I'd like is an option like undo = true; that adds an undo to your history for that entity when you spawn it. Thanks in advance.
While i'm at it, I'd really appreciate a spawnheight option too, so I can spawn entities a little above where they would otherwise spawn, as the computers are spawning in the floor a lot of the time.

from darkrpmodification.

FPtje avatar FPtje commented on September 18, 2024

Fixed in
FPtje/DarkRP@78f3391

from darkrpmodification.

Related Issues (20)

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.