• DarkRP 2.4.X
    1,868 replies, posted
People have to receive server info to be able to play in the server. Not only in DarkRP.
Hi i have the latest version of darkrp,and i wanted to add a few custom classes using the classmaker on the darkrp forums.So i added in the classes but when i go to launch the gamemode it says "LuaGetfile: Not Loading Custom Darkrp test/gamemode/cl_init.lua" and loads to either sandbox or base. Any Ideas Why? The only .lua file i edited was shared.lua Fixed i had to rename the folder for some reason. But now when i right click to hold up weapons nothing happens and i can also shoot when not holding it up and i also walk slowly as if i was holding it up, can someone suggest why?
Hi when I add the following files to my addentities file the cars are shown in the menu, but after clicking the cars they are not bought. Nothing happens. [code]AddCustomVehicle("Banshee", "Models/dean/gtaiv/vehicles/banshee.mdl", 15000 ) AddCustomVehicle("Faggio", "Models/dean/gtaiv/vehicles/faggio.mdl", 2700 ) AddCustomVehicle("Lokus", "Models/dean/gtaiv/vehicles/lokus.mdl", 7500 ) AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000 ) AddCustomVehicle("Stallion", "Models/dean/gtaiv/vehicles/stallion.mdl", 12500 ) AddCustomVehicle("Sanchez", "Models/dean/gtaiv/vehicles/sanchez.mdl", 6000 )[/code]
[QUOTE=ApeSpecter;21306656]Hi when I add the following files to my addentities file the cars are shown in the menu, but after clicking the cars they are not bought. Nothing happens. [code]AddCustomVehicle("Banshee", "Models/dean/gtaiv/vehicles/banshee.mdl", 15000 ) AddCustomVehicle("Faggio", "Models/dean/gtaiv/vehicles/faggio.mdl", 2700 ) AddCustomVehicle("Lokus", "Models/dean/gtaiv/vehicles/lokus.mdl", 7500 ) AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000 ) AddCustomVehicle("Stallion", "Models/dean/gtaiv/vehicles/stallion.mdl", 12500 ) AddCustomVehicle("Sanchez", "Models/dean/gtaiv/vehicles/sanchez.mdl", 6000 )[/code][/QUOTE] You didn't add a team. Example: [lua] AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000, 10, false, 0, false, {TEAM_CAR, TEAM_ADMIN}) [/lua]
[QUOTE=bfking;21307896]You didn't add a team. Example: [lua] AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000, 10, false, 0, false, {TEAM_CAR, TEAM_ADMIN}) [/lua][/QUOTE] No, it says I can do it without teams too.. :S Please tell me the meanings of the others.
[QUOTE=bfking;21307896]You didn't add a team. Example: [lua] AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000, 10, false, 0, false, {TEAM_CAR, TEAM_ADMIN}) [/lua][/QUOTE] It should be: [lua] AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", {TEAM_CAR, TEAM_ADMIN}) [/lua] Also, for the name, are you using the name from rp_getvehicles?
[QUOTE=Drakehawke;21308633]It should be: [lua] AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", {TEAM_CAR, TEAM_ADMIN}) [/lua] Also, for the name, are you using the name from rp_getvehicles?[/QUOTE] Ok, I will try.
No like they have to wait for 5 minutes and it's still stuck on retrieving server info..... It never goes to sending server info....
[QUOTE=Dino Penis;21314543]No like they have to wait for 5 minutes and it's still stuck on retrieving server info..... It never goes to sending server info....[/QUOTE] Happens sometimes to me as well, restart your server and it should be fine.
[QUOTE=FPtje;21281886]:/ Besides DarkRP does nothing when a player leaves a vehicle. FPP does something, but that's to prevent players from using pods to go through walls which can not be the problem unless you are teleported inside the car after 0.1 seconds.[/QUOTE] That is what it does. Every time too. In 3 different servers running latest SVN. Instead of spawning outside the car like normal it spawns you outside of it then drags the player into the middle of the car after .1 seconds or so. Right on top of the vehicles body bone or origins 0,0,0 on the model. Or something like that. Only does it on this gamemode it may be FPP but I want to figure out how to disable it or whatever so it quits being a douche. Lol figured it out. [lua]function FPP.Protect.LeaveVehicle(ply, vehicle) local pos = vehicle:GetPos() timer.Simple(0.1, function(pos) if not ply:IsValid() then return end local PlyPos = ply:GetPos() local diff = pos - PlyPos local trace = {} trace.start = pos trace.endpos = PlyPos trace.filter = {ply,vehicle} trace.mask = -1 local TraceResult = util.TraceLine(trace) if not TraceResult.Hit then return end trace.endpos = pos + diff TraceResult = util.TraceLine(trace) if not TraceResult.Hit then ply:SetPos(pos + diff) return end ply:SetPos(pos + Vector(0,0,50) + 0.1 * diff) end, pos) end hook.Add("PlayerLeaveVehicle", "FPP.PlayerLeaveVehicle", FPP.Protect.LeaveVehicle)[/lua] Once I removed that everything is dandy.
It's weird, because it works fine on my server sgt.sgt. try with the latest SVN, I just updated it. If it still does it, send me your vehicles.
A major problem i'm having, with the latest verion(garrysmod and svn, tried both) is that when you buy any gun, you can't pick it up and it comes up as a "disconnected players prop"
rp_license 0
I got an annoying thing on this new release i really need help for The guests who logs in to my server got the jobs as "Teh Owner" and spawns with a HL2 pistol... I dunno why this happends.. please help?
[QUOTE=kubanen;21326805]I got an annoying thing on this new release i really need help for The guests who logs in to my server got the jobs as "Teh Owner" and spawns with a HL2 pistol... I dunno why this happends.. please help?[/QUOTE] Did you put "Teh owner" job as the first job? Example: "Teh owner" "Citizen" Change to: "Citizen" "Teh owner" Only thing it can be (I think, long time ago I looked at DarRP code) EDIT: I was right: [lua] /*-------------------------------------------------------- Default teams. If you make a team above the citizen team, people will spawn with that team! --------------------------------------------------------*/ [/lua]
For some weird reason, whenever i try to open the door menu, or the other menu thing (i forgot what its normally called, the one on F4) It doesnt open, and it comes with this error [code]:1: attempt to call global 'KeysMenu' (a nil value)[/code] For the keys menu and [code]:1: attempt to call global 'ChangeJobVGUI' (a nil value)[/code] For the f4 menu. I would really apreciate if you could help me with this quite annoying problem. [B]EDIT[/B] Also, this apparently only happens when i use my dedicated server, if i use the create multiplayer option on the garry's mod menu, everything works just fine.
[QUOTE=ApeSpecter;21308859]Ok, I will try.[/QUOTE] They dont spawn there are only like 4 working out of 40 cars.
Thanks FPtje
[QUOTE=ApeSpecter;21328624]They dont spawn there are only like 4 working out of 40 cars.[/QUOTE] Type rp_getvehicles, and use those as the names of them, it should work then.. My only guess is some of them have the same rp_getvehicles name as the name you gave them, so using rp_getvehicles should give you the names for the rest.
[QUOTE=elowin;21328247]For some weird reason, whenever i try to open the door menu, or the other menu thing (i forgot what its normally called, the one on F4) It doesnt open, and it comes with this error [code]:1: attempt to call global 'KeysMenu' (a nil value)[/code] For the keys menu and [code]:1: attempt to call global 'ChangeJobVGUI' (a nil value)[/code] For the f4 menu. I would really apreciate if you could help me with this quite annoying problem. [B]EDIT[/B] Also, this apparently only happens when i use my dedicated server, if i use the create multiplayer option on the garry's mod menu, everything works just fine.[/QUOTE] Is the server running a FastDL? Clear your clientside DUA cache, disable FastDL, and download the DUA cache from your server. Upload the DUA cache to the FastDL location, and try it again. Also, check that the problem is actually fixed when you connect while FastDL is disabled.
[QUOTE=Drakehawke;21334369]Type rp_getvehicles, and use those as the names of them, it should work then.. My only guess is some of them have the same rp_getvehicles name as the name you gave them, so using rp_getvehicles should give you the names for the rest.[/QUOTE] I am using the names from rp_getvehicles list, but most of the cars have a space in their names, how can I solve it?
[QUOTE=deadeye536;21336958]Is the server running a FastDL? Clear your clientside DUA cache, disable FastDL, and download the DUA cache from your server. Upload the DUA cache to the FastDL location, and try it again. Also, check that the problem is actually fixed when you connect while FastDL is disabled.[/QUOTE] Thanks that worked, a bit annoying that i cant run with fastdownload, but i can survive without it.
[QUOTE=ApeSpecter;21306656]Hi when I add the following files to my addentities file the cars are shown in the menu, but after clicking the cars they are not bought. Nothing happens. [code]AddCustomVehicle("Banshee", "Models/dean/gtaiv/vehicles/banshee.mdl", 15000 ) AddCustomVehicle("Faggio", "Models/dean/gtaiv/vehicles/faggio.mdl", 2700 ) AddCustomVehicle("Lokus", "Models/dean/gtaiv/vehicles/lokus.mdl", 7500 ) AddCustomVehicle("Minivan", "Models/dean/gtaiv/vehicles/minivan.mdl", 5000 ) AddCustomVehicle("Stallion", "Models/dean/gtaiv/vehicles/stallion.mdl", 12500 ) AddCustomVehicle("Sanchez", "Models/dean/gtaiv/vehicles/sanchez.mdl", 6000 )[/code][/QUOTE] Well I don't think those are actual VEHICLES. They are props. That is probably why. Also I will try to update my svn, been using the latest version. But I don't see why I would bother since I fixed the issue. I may have had to delete a protection but every time I play I am on my server or my friends and I just ban people that do stuff like use pods to get inside buildings.
I got a question apart from this vehicle thing. =P Is it possible to give different jobs different abilities? By this I mean like make one job run faster or jump higher. If so, how?
Is there any way to enable hunger mod?
[QUOTE=soccercrazy1;21372798]Is there any way to enable hunger mod?[/QUOTE] rp_hungermod 1
[QUOTE=Kaleb;21374484]rp_hungermod 1[/QUOTE] [CODE]Unknown command "rp_hungermod"[/CODE]
[QUOTE=soccercrazy1;21374673][CODE]Unknown command "rp_hungermod"[/CODE][/QUOTE] What is the name of your DarkRP folder? If it isn't "DarkRP" (note caps) exactly, it won't detect the modules. Just to double check this, try sleeping too, as that is a module as well.
[QUOTE=deadeye536;21374845]What is the name of your DarkRP folder? If it isn't "DarkRP" (note caps) exactly, it won't detect the modules. Just to double check this, try sleeping too, as that is a module as well.[/QUOTE] Ah, I see. My folder was named wrong. Thanks!
Greetings people, would anyone be able to give me a heads up as to were i would edit the script to have a custom job that requires a certain steam ID to use, or were i could edit the /job arguments to implement a flaging system?
Sorry, you need to Log In to post a reply to this thread.