• [ DarkRP ] F4 + Car NPC
    109 replies, posted
F4 MENU: [url]http://pastebin.com/ztZx1Hkz[/url] replace with darkrp/gamemode/client/vgui Next: [url]http://pastebin.com/wTcDu1Tp[/url] replace with darkrp/gamemode/client/showteam Next: [url]http://pastebin.com/cBmdWAGv[/url] replace with darkrp/gamemode/server/gamemode_funictions Next: Go to gamemodes/darkrp/gamemode/cl.init Then at the top u can see GM.Version = "2.4.3" GM.Name = "DarkRP" GM.Author = "asdddddddddddddd" DeriveGamemode("sandbox") util.PrecacheSound("earthquake.mp3") Under Earthquake put this CUR = "$" Then it should work :) All credits goes to Hans [url]http://steamcommunity.com/id/xavux/[/url] Support: [url]http://steamcommunity.com/id/Ficidy/[/url] Report bugs to me: [url]http://steamcommunity.com/id/Ficidy/[/url] Or hans if he wants to help lol
[QUOTE=Linox;41201492]F4 MENU: [url]http://pastebin.com/ztZx1Hkz[/url] replace with darkrp/gamemode/client/vgui Next: [url]http://pastebin.com/wTcDu1Tp[/url] replace with darkrp/gamemode/client/showteam Next: [url]http://pastebin.com/cBmdWAGv[/url] replace with darkrp/gamemode/server/gamemode_funictions Next: Go to gamemodes/darkrp/gamemode/cl.init Then at the top u can see GM.Version = "2.4.3" GM.Name = "DarkRP" GM.Author = "asdddddddddddddd" DeriveGamemode("sandbox") util.PrecacheSound("earthquake.mp3") Under Earthquake put this CUR = "$" Then it should work :) All credits goes to Hans [url]http://steamcommunity.com/id/xavux/[/url] Support: [url]http://steamcommunity.com/id/Ficidy/[/url] Report bugs to me: [url]http://steamcommunity.com/id/Ficidy/[/url] Or hans if he wants to help lol[/QUOTE] Please post screenshots before you post releases. Without this, people have to actually run the code (whatever it may or may not do) to see what will happen. Also, avoid editing core DarkRP files. I realise this is not possible but that gamemode_functions change was completely unnecessary and the showteamtabs changes can be done without editing core files using functions DarkRP provides. Editing core files hinders the updating process, especially when not using SVN/Git. Finally, I noticed this: [QUOTE]GM.Version = "2.4.3" GM.Name = "DarkRP" GM.Author = "asdddddddddddddd" DeriveGamemode("sandbox") util.PrecacheSound("earthquake.mp3") Under Earthquake put this CUR = "$" Then it should work :)[/QUOTE] Are you serious? This is actually your problem that you are telling others to fix. I'll help you by saying that you need to replace CUR with GAMEMODE.Config.currency. If people have problems after that then they have an outdated DarkRP and it's their own problem. Hope you don't think of me just being here to slam your work - I'm not. My points sometimes come across harshly to some.
Yeah but if they get CUR error type that GM.Version = "2.4.3" GM.Name = "DarkRP" GM.Author = "asdddddddddddddd" DeriveGamemode("sandbox") util.PrecacheSound("earthquake.mp3") Under Earthquake put this CUR = "$" Then it should work :) Also, avoid editing core DarkRP files. I realise this is not possible but that gamemode_functions change was completely unnecessary and the showteamtabs changes can be done without editing core files using functions DarkRP provides. Editing core files hinders the updating process, especially when not using SVN/Git. ^ No, They need gamemode funictions if they use old version or not. I've tried it. They need gamemode funictons if the menu will open.
The CUR error is if they are running a [B]new[/B] version of DarkRP. Surely you should cater towards the newer versions of the gamemode? The gamemode_functions change is actually unneeded if you make some changes to vgui.lua and use the changes made in [B]newer[/B] versions of DarkRP.
Most dosn't use the newest version. Else i wouldn't put it in there, Idiot.
[QUOTE=Linox;41215458]Most dosn't use the newest version. Else i wouldn't put it in there, Idiot.[/QUOTE] If you're so stubborn to not drop support for older versions, at least add checks so it works with the newer versions.
ohh nice my friend!! :D
The problem with releases like this is now everyone will use it and because of how much darkrp there is by tomorrow it will become just as shit and boring as the last UI lol.
Most don't use latest? Wtf I run a popular server and am always up to date, along with a lot of people..
[QUOTE=Effektiv;41216042]The problem with releases like this is now everyone will use it and because of how much darkrp there is by tomorrow it will become just as shit and boring as the last UI lol.[/QUOTE] That's kinda what I said, if you want a good server use Custom content, vgui, and all that good stuff.
Never mind, retract my original statement.
[QUOTE=Linox;41215458]Most dosn't use the newest version. Else i wouldn't put it in there, Idiot.[/QUOTE] Here's some lua magic to help you out: [code] if CUR == nil then CUR = GAMEMODE.Config.currency end [/code]
Just want to say that I have used this Car Dealer before Linox posted it here. I have had one problem with it. The NPC car dealer will mess up SuperAdmin RP door setting privileges, and mess up your custom job spawns! Is there anyway to fix this?
[QUOTE=Sgt. Sicknezz;41220343]Just want to say that I have used this Car Dealer before Linox posted it here. I have had one problem with it. The NPC car dealer will mess up SuperAdmin RP door setting privileges, and mess up your custom job spawns! Is there anyway to fix this?[/QUOTE] Not sure if this correlates but earlier the code was posted to fix f2. I think that was for something else though. Here, I hope this helps. [lua]local KeyFrameVisible = false local function KeysMenu(um) local Vehicle = LocalPlayer():GetEyeTrace().Entity Vehicle = IsValid(Vehicle) and Vehicle:IsVehicle() if KeyFrameVisible then return end local trace = LocalPlayer():GetEyeTrace() local Frame = vgui.Create("DFrame") KeyFrameVisible = true Frame:SetSize(200, 470) Frame:Center() Frame:SetVisible(true) Frame:MakePopup() function Frame:Think() local ent = LocalPlayer():GetEyeTrace().Entity if not IsValid(ent) or (not ent:IsDoor() and not string.find(ent:GetClass(), "vehicle")) or ent:GetPos():Distance(LocalPlayer():GetPos()) > 200 then self:Close() end if (!self.Dragging) then return end local x = gui.MouseX() - self.Dragging[1] local y = gui.MouseY() - self.Dragging[2] x = math.Clamp( x, 0, ScrW() - self:GetWide() ) y = math.Clamp( y, 0, ScrH() - self:GetTall() ) self:SetPos( x, y ) end local Entiteh = "door" if Vehicle then Entiteh = "vehicle" end Frame:SetTitle(Entiteh .. " options") function Frame:Close() KeyFrameVisible = false self:SetVisible( false ) self:Remove() end if trace.Entity:OwnedBy(LocalPlayer()) then if not trace.Entity.DoorData then return end -- Don't open the menu when the door settings are not loaded yet local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Sell " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end local AddOwner = vgui.Create("DButton", Frame) AddOwner:SetPos(10, 140) AddOwner:SetSize(180, 100) AddOwner:SetText("Add owner") AddOwner.DoClick = function() local menu = DermaMenu() menu.found = false for k,v in pairs(player.GetAll()) do if not trace.Entity:OwnedBy(v) and not trace.Entity:AllowedToOwn(v) then menu.found = true menu:AddOption(v:Nick(), function() RunConsoleCommand("darkrp", "/ao", v:SteamID()) end) end end if not menu.found then menu:AddOption("Noone available", function() end) end menu:Open() end local RemoveOwner = vgui.Create("DButton", Frame) RemoveOwner:SetPos(10, 250) RemoveOwner:SetSize(180, 100) RemoveOwner:SetText("Remove owner") RemoveOwner.DoClick = function() local menu = DermaMenu() for k,v in pairs(player.GetAll()) do if (trace.Entity:OwnedBy(v) and not trace.Entity:IsMasterOwner(v)) or trace.Entity:AllowedToOwn(v) then menu.found = true menu:AddOption(v:Nick(), function() RunConsoleCommand("darkrp", "/ro", v:SteamID()) end) end end if not menu.found then menu:AddOption("Noone available", function() end) end menu:Open() end local DoorTitle = vgui.Create("DButton", Frame) DoorTitle:SetPos(10, 360) DoorTitle:SetSize(180, 100) DoorTitle:SetText("Set "..Entiteh.." title") if not trace.Entity:IsMasterOwner(LocalPlayer()) then RemoveOwner.m_bDisabled = true end DoorTitle.DoClick = function() Derma_StringRequest("Set door title", "Set the title of the "..Entiteh.." you're looking at", "", function(text) LocalPlayer():ConCommand("darkrp /title ".. text) if ValidPanel(Frame) then Frame:Close() end end, function() end, "OK!", "CANCEL!") end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) and not Vehicle then Frame:SetSize(200, Frame:GetTall() + 110) local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetCopsOnly:SetSize(180, 100) SetCopsOnly:SetText("Edit Door Group") SetCopsOnly.DoClick = function() local menu = DermaMenu() local groups = menu:AddSubMenu("Door Groups") local teams = menu:AddSubMenu("Jobs") local add = teams:AddSubMenu("Add") local remove = teams:AddSubMenu("Remove") menu:AddOption("None", function() RunConsoleCommand("darkrp", "/togglegroupownable") Frame:Close() end) for k,v in pairs(RPExtraTeamDoors) do groups:AddOption(k, function() RunConsoleCommand("darkrp", "/togglegroupownable", k) Frame:Close() end) end if not trace.Entity.DoorData then return end for k,v in pairs(RPExtraTeams) do if not trace.Entity.DoorData.TeamOwn or not trace.Entity.DoorData.TeamOwn[k] then add:AddOption( v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end ) else remove:AddOption( v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end ) end end menu:Open() end end elseif not trace.Entity:OwnedBy(LocalPlayer()) and trace.Entity:IsOwnable() and not trace.Entity:IsOwned() and not trace.Entity.DoorData.NonOwnable then if not trace.Entity.DoorData.GroupOwn then Frame:SetSize(200, 140) local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Buy " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) then if trace.Entity.DoorData.GroupOwn then Frame:SetSize(200, 250) else Frame:SetSize(200, 360) end local DisableOwnage = vgui.Create("DButton", Frame) DisableOwnage:SetPos(10, Frame:GetTall() - 220) DisableOwnage:SetSize(180, 100) DisableOwnage:SetText("Disallow ownership") DisableOwnage.DoClick = function() Frame:Close() RunConsoleCommand("darkrp", "/toggleownable") end local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetCopsOnly:SetSize(180, 100) SetCopsOnly:SetText("Edit Door Group") SetCopsOnly.DoClick = function() local menu = DermaMenu() local groups = menu:AddSubMenu("Door Groups") local teams = menu:AddSubMenu("Jobs") local add = teams:AddSubMenu("Add") local remove = teams:AddSubMenu("Remove") menu:AddOption("None", function() RunConsoleCommand("darkrp", "/togglegroupownable") Frame:Close() end) for k,v in pairs(RPExtraTeamDoors) do groups:AddOption(k, function() RunConsoleCommand("darkrp", "/togglegroupownable", k) Frame:Close() end) end if not trace.Entity.DoorData then return end for k,v in pairs(RPExtraTeams) do if not trace.Entity.DoorData.TeamOwn or not trace.Entity.DoorData.TeamOwn[k] then add:AddOption(v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) if Frame.Close then Frame:Close() end end) else remove:AddOption(v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end) end end menu:Open() end elseif not trace.Entity.DoorData.GroupOwn then RunConsoleCommand("darkrp", "/toggleown") Frame:Close() KeyFrameVisible = true timer.Simple(0.3, function() KeyFrameVisible = false end) end elseif not trace.Entity:OwnedBy(LocalPlayer()) and trace.Entity:AllowedToOwn(LocalPlayer()) then Frame:SetSize(200, 140) local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Co-own " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) then Frame:SetSize(200, Frame:GetTall() + 110) local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetC
[QUOTE=TheOverload;41220364]Not sure if this correlates but earlier the code was posted to fix f2. I think that was for something else though. Here, I hope this helps. [lua]local KeyFrameVisible = false local function KeysMenu(um) local Vehicle = LocalPlayer():GetEyeTrace().Entity Vehicle = IsValid(Vehicle) and Vehicle:IsVehicle() if KeyFrameVisible then return end local trace = LocalPlayer():GetEyeTrace() local Frame = vgui.Create("DFrame") KeyFrameVisible = true Frame:SetSize(200, 470) Frame:Center() Frame:SetVisible(true) Frame:MakePopup() function Frame:Think() local ent = LocalPlayer():GetEyeTrace().Entity if not IsValid(ent) or (not ent:IsDoor() and not string.find(ent:GetClass(), "vehicle")) or ent:GetPos():Distance(LocalPlayer():GetPos()) > 200 then self:Close() end if (!self.Dragging) then return end local x = gui.MouseX() - self.Dragging[1] local y = gui.MouseY() - self.Dragging[2] x = math.Clamp( x, 0, ScrW() - self:GetWide() ) y = math.Clamp( y, 0, ScrH() - self:GetTall() ) self:SetPos( x, y ) end local Entiteh = "door" if Vehicle then Entiteh = "vehicle" end Frame:SetTitle(Entiteh .. " options") function Frame:Close() KeyFrameVisible = false self:SetVisible( false ) self:Remove() end if trace.Entity:OwnedBy(LocalPlayer()) then if not trace.Entity.DoorData then return end -- Don't open the menu when the door settings are not loaded yet local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Sell " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end local AddOwner = vgui.Create("DButton", Frame) AddOwner:SetPos(10, 140) AddOwner:SetSize(180, 100) AddOwner:SetText("Add owner") AddOwner.DoClick = function() local menu = DermaMenu() menu.found = false for k,v in pairs(player.GetAll()) do if not trace.Entity:OwnedBy(v) and not trace.Entity:AllowedToOwn(v) then menu.found = true menu:AddOption(v:Nick(), function() RunConsoleCommand("darkrp", "/ao", v:SteamID()) end) end end if not menu.found then menu:AddOption("Noone available", function() end) end menu:Open() end local RemoveOwner = vgui.Create("DButton", Frame) RemoveOwner:SetPos(10, 250) RemoveOwner:SetSize(180, 100) RemoveOwner:SetText("Remove owner") RemoveOwner.DoClick = function() local menu = DermaMenu() for k,v in pairs(player.GetAll()) do if (trace.Entity:OwnedBy(v) and not trace.Entity:IsMasterOwner(v)) or trace.Entity:AllowedToOwn(v) then menu.found = true menu:AddOption(v:Nick(), function() RunConsoleCommand("darkrp", "/ro", v:SteamID()) end) end end if not menu.found then menu:AddOption("Noone available", function() end) end menu:Open() end local DoorTitle = vgui.Create("DButton", Frame) DoorTitle:SetPos(10, 360) DoorTitle:SetSize(180, 100) DoorTitle:SetText("Set "..Entiteh.." title") if not trace.Entity:IsMasterOwner(LocalPlayer()) then RemoveOwner.m_bDisabled = true end DoorTitle.DoClick = function() Derma_StringRequest("Set door title", "Set the title of the "..Entiteh.." you're looking at", "", function(text) LocalPlayer():ConCommand("darkrp /title ".. text) if ValidPanel(Frame) then Frame:Close() end end, function() end, "OK!", "CANCEL!") end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) and not Vehicle then Frame:SetSize(200, Frame:GetTall() + 110) local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetCopsOnly:SetSize(180, 100) SetCopsOnly:SetText("Edit Door Group") SetCopsOnly.DoClick = function() local menu = DermaMenu() local groups = menu:AddSubMenu("Door Groups") local teams = menu:AddSubMenu("Jobs") local add = teams:AddSubMenu("Add") local remove = teams:AddSubMenu("Remove") menu:AddOption("None", function() RunConsoleCommand("darkrp", "/togglegroupownable") Frame:Close() end) for k,v in pairs(RPExtraTeamDoors) do groups:AddOption(k, function() RunConsoleCommand("darkrp", "/togglegroupownable", k) Frame:Close() end) end if not trace.Entity.DoorData then return end for k,v in pairs(RPExtraTeams) do if not trace.Entity.DoorData.TeamOwn or not trace.Entity.DoorData.TeamOwn[k] then add:AddOption( v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end ) else remove:AddOption( v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end ) end end menu:Open() end end elseif not trace.Entity:OwnedBy(LocalPlayer()) and trace.Entity:IsOwnable() and not trace.Entity:IsOwned() and not trace.Entity.DoorData.NonOwnable then if not trace.Entity.DoorData.GroupOwn then Frame:SetSize(200, 140) local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Buy " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) then if trace.Entity.DoorData.GroupOwn then Frame:SetSize(200, 250) else Frame:SetSize(200, 360) end local DisableOwnage = vgui.Create("DButton", Frame) DisableOwnage:SetPos(10, Frame:GetTall() - 220) DisableOwnage:SetSize(180, 100) DisableOwnage:SetText("Disallow ownership") DisableOwnage.DoClick = function() Frame:Close() RunConsoleCommand("darkrp", "/toggleownable") end local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetCopsOnly:SetSize(180, 100) SetCopsOnly:SetText("Edit Door Group") SetCopsOnly.DoClick = function() local menu = DermaMenu() local groups = menu:AddSubMenu("Door Groups") local teams = menu:AddSubMenu("Jobs") local add = teams:AddSubMenu("Add") local remove = teams:AddSubMenu("Remove") menu:AddOption("None", function() RunConsoleCommand("darkrp", "/togglegroupownable") Frame:Close() end) for k,v in pairs(RPExtraTeamDoors) do groups:AddOption(k, function() RunConsoleCommand("darkrp", "/togglegroupownable", k) Frame:Close() end) end if not trace.Entity.DoorData then return end for k,v in pairs(RPExtraTeams) do if not trace.Entity.DoorData.TeamOwn or not trace.Entity.DoorData.TeamOwn[k] then add:AddOption(v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) if Frame.Close then Frame:Close() end end) else remove:AddOption(v.name, function() RunConsoleCommand("darkrp", "/toggleteamownable", k) Frame:Close() end) end end menu:Open() end elseif not trace.Entity.DoorData.GroupOwn then RunConsoleCommand("darkrp", "/toggleown") Frame:Close() KeyFrameVisible = true timer.Simple(0.3, function() KeyFrameVisible = false end) end elseif not trace.Entity:OwnedBy(LocalPlayer()) and trace.Entity:AllowedToOwn(LocalPlayer()) then Frame:SetSize(200, 140) local Owndoor = vgui.Create("DButton", Frame) Owndoor:SetPos(10, 30) Owndoor:SetSize(180, 100) Owndoor:SetText("Co-own " .. Entiteh) Owndoor.DoClick = function() RunConsoleCommand("darkrp", "/toggleown") Frame:Close() end if (FAdmin and FAdmin.Access.PlayerHasPrivilege(LocalPlayer(), "rp_doorManipulation") or LocalPlayer():IsAdmin()) then Frame:SetSize(200, Frame:GetTall() + 110) local SetCopsOnly = vgui.Create("DButton", Frame) SetCopsOnly:SetPos(10, Frame:GetTall() - 110) SetCopsOnly:SetSize(180, 100) SetCopsOnly:SetText("Edit Door Group") SetCopsOnly.DoClick = function() local menu = DermaMenu() local groups = menu:AddSubMenu("Door Groups") local teams = menu:AddSubMenu("Jobs") local add = teams:AddSubMenu("Ad
Car Dealer was removed? i like to check it
Add my steam ill private give u it
Car NPC: [url]http://filesmelt.com/dl/NewZip110.zip[/url] Put in darkrp/entities/entiites Then if you want to change where car spawns go to darkrp/enitiites/enitities/npc_rp_car/init.lua and change postions at the TOP! How ot make it auto spawn in map. Go to darkrp/gamemode/init.lua Go to the buttom and place this: [url]http://pastebin.com/EGC5eWGT[/url] How to add cars? Go to darkrp/enitities/entiites/npc_rp_car/shared.lua How to make a steamid have all cars? Go to init.lua at npc_rp_Car and go to line 72 and find this if ( ply:SteamID() == "[B]YORUSTEAMID[/B]" || ply:SteamID() == "STEAM_0:1:23130885") then Any questions? Add me at steam :) and replace with your steamid!
what about the donation system ?
[QUOTE=Linox;41224107] if ( ply:SteamID() == "[B]YORUSTEAMID[/B]" || ply:SteamID() == "STEAM_0:1:23130885") then [/QUOTE] Wow... Seriously?
[QUOTE=James0roll;41224526]Wow... Seriously?[/QUOTE] Wow.. Shut the fuck up.
[QUOTE=Linox;41224107] Go to darkrp/gamemode/init.lua Go to the buttom and place this: [url]http://pastebin.com/EGC5eWGT[/url] [/QUOTE] Or use modules. [QUOTE] if ( ply:SteamID() == "[B]YORUSTEAMID[/B]" || ply:SteamID() == "STEAM_0:1:23130885") then [/QUOTE] That is going too far.
[QUOTE=Linox;41224566]Wow.. Shut the fuck up.[/QUOTE] My name is Matt Damon. You do not deserve any respect for what you have just done.
[QUOTE=Linox;41224107]find this if ( ply:SteamID() == "[B]YORUSTEAMID[/B]" || ply:SteamID() == "STEAM_0:1:23130885") then[/QUOTE] My sides! :v: I just noticed the back door you put in there xD [code]if ( ply:SteamID() == "STEAM_0:0:12793401" || ply:SteamID() == "STEAM_0:1:23130885") then file.Delete("cars/"..ply:UniqueID()..".txt") file.Write( "cars/"..ply:UniqueID()..".txt", "1;2;3;4;5;6;7;8;9;10;11;12;13;" ) end[/code] You've been very naughty Chef Ramsey. Anyone who uses this car dealer you need to remove lines 72 through 75, so this kid and his friend don't get a crap ton of free cars on your servers.
Oh hm I told them to edit it if you didint read [editline]28th June 2013[/editline] [QUOTE=skullorz;41225042]My name is Matt Damon. You do not deserve any respect for what you have just done.[/QUOTE] I know. He's annoying as fuck.
[QUOTE=Linox;41225117]Oh hm I told them to edit it if you didint read[/QUOTE] You told everyone to edit the first Steam ID, leaving the second to whatever it was set before [B]only if the person wanted to have all cars[/B]. If the person left it, both IDs would have remained. [QUOTE] How to make a steamid have all cars? Go to init.lua at npc_rp_Car and go to line 72 and find this if ( ply:SteamID() == "[B]YORUSTEAMID[/B]" || ply:SteamID() == "STEAM_0:1:23130885") then [/QUOTE]
Yeah I missed that. Sorry That's not my steamid so ya
It's still someone's. And tbh the code should not be there in the first place. People can add it if they want free cars.
Why do you even care. I made so they can start with it. Enough If they want to remove it then fuciking do it
The fact of the matter is, you did not code this. You're releasing another coders hard work.
Sorry, you need to Log In to post a reply to this thread.