1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

I need someone to code FA:S guns for the gundealer

Discussion in 'DarkRP Modding Questions & Help' started by Fabio, May 29, 2014.

  1. Fabio

    Fabio New Member

    Hey guys, first thread.
    I need to get someone to code the addentities.lua for me to add FA:S 2 guns to the gundealer job
    I tried to do it but the tab where shipments would be in the f4 menu was gone
    Thanks



    Ps: I don't have any money to pay anyone, but if I did I would.
     
  2. Zignd

    Zignd Member

    Me too, I also don't have money, but if I had I would buy one of each script available on CoderHire and make it available for free to the entire community, fucking up CoderHire, although about the FA:S weapons, here is an example of my own darkrpmodification/lua/darkrp_customthings/shipments.lua:

    Code (Text):
    QtdShip = 3

    AddCustomShipment("AK-47", "models/weapons/w_rif_ak47.mdl", "fas2_ak47", 1250 * QtdShip, QtdShip, true, 1250, false, {TEAM_ARMAS})
    AddCustomShipment("AK-74", "models/weapons/w_rif_ak47.mdl", "fas2_ak74", 1470 * QtdShip, QtdShip, true, 1470, false, {TEAM_ARMAS})
    TEAM_ARMAS is my TEAM_GUN or something like that, just for curiosity purposes, ARMA is the portuguese word for GUN.
     
    Last edited: Jun 3, 2014
  3. Fabio

    Fabio New Member

    Alright, I'll try that code and replace ARMA with team_gun, hopefully it works
     
  4. Fabio

    Fabio New Member

    Nah didn't work
     
  5. Zignd

    Zignd Member

    Yeah, it works, I have them on my server and it work, I'm 100% sure that you did something wrong. Instead of posting "Nah didn't work" post the fucking error dude!
     
  6. Fabio

    Fabio New Member

    Nothing shows up in the f4 menu for me. The misc. tab is darkened, and I can't click on it
     
  7. Digital Spit

    Digital Spit New Member

    Fabio, post what you put into your shipments.lua so we can help you.
     
  8. Sgt.Stupid

    Sgt.Stupid New Member

    I gotchu brotha.


    Code (Text):
    AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "fas2_ak47", 7000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("AK12", "models/weapons/world/rifles/ak12.mdl", "fas2_ak12", 7800, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("AK74", "models/weapons/w_rif_ak47.mdl", "fas2_ak74", 6700, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("AN94", "models/weapons/world/rifles/an94.mdl", "fas2_an94", 5700, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "fas2_deagle", 5000, 10, true, 500, true, {TEAM_GUN1})
    AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "fas2_famas", 5700, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Mac 11", "models/weapons/w_smg_mac10.mdl", "fas2_mac11", 4650, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Raging Bull", "models/weapons/w_357.mdl", "fas2_ragingbull", 3500, 10, true, 305, false, {TEAM_GUN1})
    AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "fas2_galil", 6400, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("MP5a5", "models/weapons/w_smg_mp5.mdl", "fas2_mp5a5", 4900, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Remington 870", "models/weapons/world/shotguns/ks23.mdl", "fas2_rem870", 6000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("OTS33", "models/weapons/world/pistols/ots33.mdl", "fas2_ots33", 3000, 10, true, 300, false, {TEAM_GUN1})
    AddCustomShipment("Bizon", "models/weapons/w_smg_biz.mdl", "fas2_pp19", 5000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Shako RK", "models/weapons/w_snip_g3sg1.mdl", "fas2_rk95", 6300, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "fas2_sg550", 6500, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "fas2_sg552", 6100, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("SKS", "models/weapons/world/rifles/sks.mdl", "fas2_sks", 5600, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("SR-25", "models/weapons/w_snip_g3sg1.mdl", "fas2_sr25", 7000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "fas2_m4a1", 7600, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("P226", "models/weapons/w_pist_p228.mdl", "fas2_p226", 3400, 10, true, 325, false, {TEAM_GUN1})
    AddCustomShipment("UZI", "models/weapons/w_smg_tmp.mdl", "fas2_uzi", 7600, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("Glock20", "models/weapons/w_pist_glock18.mdl", "fas2_glock20", 3000, 10, true, 300, false, {TEAM_GUN1})
    AddCustomShipment("M14", "models/weapons/w_snip_g3sg1.mdl", "fas2_m14", 6000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("M3 Super 90", "models/weapons/w_shot_m3super90.mdl", "fas2_m3s90", 7000, 10, false, 0, false, {TEAM_GUN1})
    AddCustomShipment("KS23", "models/weapons/world/shotguns/ks23.mdl", "fas2_ks23", 6700, 10, false, 0, false, {TEAM_GUN1})
    Replace "TEAM_GUN1" with "TEAM_GUN"... I'm slightly drunk when i code. Keep in mind, this isn't all of them. I'm missing the "Extened sub machine guns" pack... I never got around to adding it. And I appreciate that you are using FA:S 2... M9K is just so bland and overused.
     
  9. Sgt.Stupid

    Sgt.Stupid New Member

    And make sure your gundealer job isn't custom. By default, his team is TEAM_GUN... if you have added another or something else, then double check. I'm drinking as we speak.
     
  10. Zignd

    Zignd Member

    I know you're drinking, soda.
     
    Nill Bye and Sgt.Stupid like this.
  11. Sgt.Stupid

    Sgt.Stupid New Member

    You're poorly misguided, sir.
     
  12. Fabio

    Fabio New Member

    Thanks, Ill try that
     

Share This Page