Comments (9)
oh by the way the language file seems not to load correctly, on fresh restart of my server, the half of the translated file is not in the server, after a mapchange everything is translated.
from darkrpmodification.
Use hooks.
Also how can half a file not be in the server!?
from darkrpmodification.
Config files and custom things load later because the module creator can then do stuff before they are loaded. Using hooks the module creator can delay calculation until after the custom shit is loaded. This gives the module creator choice. Loading the modules after the config files would remove that choice since you can't go back in time in Lua.
Also I just tested the language file thing and it works fine for me.
If it works after changelevel then it works after a clean restart. To Lua there is absolutely no difference between a cleanly started server and one that changed level.
from darkrpmodification.
the half of the translation is just not loaded.
Only If I change the map.
I looked into it, and only the clientside stuff works and the serverside didnt load.
from darkrpmodification.
an Example is the voterestrictions.lua.
If you drag a custom job into it, it stops working and you get a neat lua error.
It just do conflicts with config files or tables which loads fast as the jobs.lua file. some aren't working anymore.
from darkrpmodification.
Both serverside and clientside stuff works for me when translating. Also, the voterestrictions thing was broken anyway, it used a hook that didn't exist.
from darkrpmodification.
Hm, how should I fix these scripts, which loads too fast?
from darkrpmodification.
Use http://wiki.garrysmod.com/page/GM/OnGamemodeLoaded
from darkrpmodification.
Im really sorry for releasing dumb thread shit :)
I found out 1 minute ago, there is a hook for it
http://wiki.darkrp.com/index.php/Hooks/server/loadcustomdarkrpitems.
I'm really sorry 📦
from darkrpmodification.
Related Issues (20)
- 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
- Hi problems HOT 2
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.