Use:
createMarker --For create your marker.
"onMarkerHit" or "onClientMarkerHit" --The first event is server only and the second client only.
setElementPosition --For set the player's position.
setElementInterior --For set the player's interior.
Prueba esto.
function SkinP ()
setElementData(getLocalPlayer(), "skin", 33)
outputChatBox ( "Skin Instalado", 255, 255, 255, true)
end
addCommandHandler("SkinTroler",SkinP)
EDIT: La línea 3 de tu script está mal (si lo tienes como client-side).
outputChatBox en client-side no necesita ponerle el argumento de quién lo verá, así que le borré el "getRootElement()" y ya.
League of Legends (es Free-to-play)
Dota 2
Minecraft
Garry's Mod
Team Fortress 2 (es Free-to-play en Steam)
Call of Duty: Modern Warfare 3
Saints Row IV
Max Payne 2
Left 4 Dead 2
¿Antes de dar spawn? No entiendo a que te refieres. Para crear un ped y darle una animación usa:
createPed
setPedAnimation
Las animaciónes las encuentras aquí.
Usa este (eso era por el comando + el evento, y el evento 'onPlayerVehicleEnter' es cuando entras a un vehículo).
function carName (theVehicle)
local id = getElementModel (theVehicle)
if id == 411 or id == 511 then
local vehicleName = getVehicleName (theVehicle)
outputChatBox("Tu Auto Se Llama " ..vehicleName.."." )
end
end
addCommandHandler("1", carName)
Eso no tiene sentido, ¿por qué un comando + addEventHandler?
Además, finalizaste mal el comando. Y el outputChatBox está mal, no lo finalizaste...
function carName (theVehicle)
local id = getElementModel (theVehicle)
if id == 411 or id == 511 then
local vehicleName = getVehicleName (theVehicle)
outputChatBox("Tu Auto Se Llama " ..vehicleName.."." )
end
end
addCommandHandler("1", carName)
addEventHandler ("onPlayerVehicleEnter", getRootElement(),carName)