ViniGuzela Posted September 26, 2019 Share Posted September 26, 2019 Quero criar um spawn de skin dentro de um interior, no caso está em outra dimensão como posso fazer isso? zombiehunterpickup55555 = createPickup (1209.4711914063,-1468.6798095703,20.255365371704, 3, 1275, 1000 ) function zombiehunterskinpickup55555 ( thePlayer ) setPedSkin ( thePlayer, 285 ) setPlayerTeam ( thePlayer, teamzombie ) setElementData ( thePlayer, "zombie", true ) end addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == zombiehunterpickup55555) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") end end) Link to comment
Furzy Posted September 26, 2019 Share Posted September 26, 2019 setElementDimension 1 Link to comment
ViniGuzela Posted September 26, 2019 Author Share Posted September 26, 2019 (edited) 2 hours ago, Furzy said: setElementDimension em outra dimensão ja consegui, e agora para dentro do interior casa? com setElementInterior consigo? Edited September 26, 2019 by ViniGuzela Link to comment
ViniGuzela Posted September 26, 2019 Author Share Posted September 26, 2019 zombiehunterpickup55555 = createPickup (2496.112, -1708.369, 1014.742, 3, 1275, 1000 ) function zombiehunterskinpickup55555 ( thePlayer ) setPedSkin ( thePlayer, 96 ) setPlayerTeam ( thePlayer, teamzombie ) setElementData ( thePlayer, "zombie", true ) setElementDimension ( source, 1 ) setElementInterior ( source, 3 ) end addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == zombiehunterpickup55555) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") end end) correto? Link to comment
Furzy Posted September 26, 2019 Share Posted September 26, 2019 Nao. zombiehunterpickup55555 = createPickup (2496.112, -1708.369, 1014.742, 3, 1275, 1000 ) setElementDimension ( zombiehunterpickup55555, 1 ) setElementInterior ( zombiehunterpickup55555, 3 ) function zombiehunterskinpickup55555 ( thePlayer ) setPedSkin ( thePlayer, 96 ) setPlayerTeam ( thePlayer, teamzombie ) setElementData ( thePlayer, "zombie", true ) end addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == zombiehunterpickup55555) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") end end) Voce quer setar o elemento no interior e na dimensario, nao o jogador. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now