Need help making a DarkRP class spawn with an entity.
2 replies, posted
Hi, there! I'm currently implementing FA:S Weapons into my server and I was trying to make the TEAM_SWAT class spawn with an entity (to be more exact, a scope). I was wondering if this would be possible and I was wondering if someone could help me with this? Thanks!
Here is the link to FA:S Weapons : [url]http://steamcommunity.com/sharedfiles/filedetails/?id=180507408[/url]
If the entity isn't a weapon itself, then it's impossible to make the class spawn with one.
Impossible in terms of DarkRP possibilities, as FPtje didn't add any column named "entityToSpawnWith"
[QUOTE=Netheous;44550107]If the entity isn't a weapon itself, then it's impossible to make the class spawn with one.
Impossible in terms of DarkRP possibilities, as FPtje didn't add any column named "entityToSpawnWith"[/QUOTE]
This is possible, just because he wants FA:S attachments.
They have their own function to be added. Put
[code]
PlayerLoadout = function(ply)
ply:FAS2_PickUpAttachment("eotech")
ply:FAS2_PickUpAttachment("suppressor")
ply:FAS2_PickUpAttachment("sg55x30mag")
ply:SetArmor(100)
end,
[/code]
In your job. Look in the attachments shared.lua file for the attachment names. That's an example from my game, which gives a suppressor, an SG552 30RD mag, an EoTech sight, and 100 armor.
Next time, please explore the entities that give attachments before asking stuff like this.
Sorry, you need to Log In to post a reply to this thread.