Comments (3)
Give me a custom entity example that I can work with.
from darkrpmodification.
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.
Fixed in
FPtje/DarkRP@78f3391
from darkrpmodification.
Related Issues (20)
- Keep getting this issue and im not sure why HOT 9
- I get this issue but unsure why
- darkrp data not writing to database. HOT 2
- setBodygroup doesn't change anything HOT 1
- customcheck not works HOT 2
- This is not a help forum. HOT 1
- settings.lua not functioning correclty HOT 3
- editing files HOT 1
- Sos
- Custom things aren't working HOT 4
- Police commands issue HOT 1
- Error with custom darkrpmodification files HOT 1
- DarkRP, HUD, F4, Scoreboard, Gray Playermodel issue HOT 1
- Some translation strings are not working HOT 9
- Spawns and Doorgroups not saving HOT 1
- I think i'm going insane over this. HOT 1
- ERROR HOT 1
- PocketBlacklist in settings.lua not doing anything HOT 2
- No HungerMod in settings.lua HOT 1
- language change HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkrpmodification.