• DarkRP Jobs - bodygroups
    9 replies, posted
Greetings to all, I created a profession "Police officer" checked, everything works out with a bang. Then I decided to add "bodygroups" for the model of this profession, having surfed the Internet I found the code for "bodygroups", but he refuses to work instead of the necessary bodygroup, he does not put anything at all. Addon - *[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=812610473&searchtext=Police"]link[/URL]* ---------------------------------------------------------------------------------------------------- Here are the possible bodygroups ---------------------------------------------------------------------------------------------------- [IMG]http://fotohost.by/images/2017/07/13/1.png[/IMG] ---------------------------------------------------------------------------------------------------- Here's the code in jobs.lua ---------------------------------------------------------------------------------------------------- [IMG]http://fotohost.by/images/2017/07/14/3.png[/IMG] ---------------------------------------------------------------------------------------------------- I ask you to help me, because I surfed all day on the Internet, and did not find anything (
Change var to false. ( gamemode/config.lua ) [CODE]GM.Config.norespawn = true[/CODE]
[QUOTE=Flashmob;52467521]Change var to false. ( gamemode/config.lua ) [CODE]GM.Config.norespawn = true[/CODE][/QUOTE] Okay, thanks, I'll check it out now. [editline]14th July 2017[/editline] [QUOTE=Flashmob;52467521]Change var to false. ( gamemode/config.lua ) [CODE]GM.Config.norespawn = true[/CODE][/QUOTE] Still does not work, can you tell me more?
Change PlayerLoadout to PlayerSpawn. Or try to ( lua/autorun ) : [code] local ply = Player; hook.Add( "OnPlayerChangedTeam", "BodyGroupJobChange", function( ply, cjob ) if cjob == TEAM_POLICE then ply:SetBodyGroup( 0, 3 ) end end); [/code]
[QUOTE=Flashmob;52467826]Change PlayerLoadout to PlayerSpawn. Or try to ( lua/autorun ) : [code] local ply = Player; hook.Add( "OnPlayerChangedTeam", "BodyGroupJobChange", function( ply, cjob ) if cjob == TEAM_POLICE then ply:SetBodyGroup( 0, 3 ) end end); [/code][/QUOTE] Does not work((((
Please help me(
[QUOTE=Famouse;52468215]Please help me([/QUOTE] Write me your Steam.
[QUOTE=Flashmob;52468231]Write me your Steam.[/QUOTE] [url]http://steamcommunity.com/id/famouse228/[/url]
Obviously. This is not BodyGroup, but a skin, so you need to use Entity:Setkin( '3' ).
[QUOTE=Flashmob;52468694]Obviously. This is not BodyGroup, but a skin, so you need to use Entity:Setkin( '3' ).[/QUOTE] Yes, thank you.
Sorry, you need to Log In to post a reply to this thread.