Jump to content

onElementModelChange


WASSIm.

Recommended Posts

yeah

addEventHandler("onElementModelChange", root, 
function ( ) 
    outputChatBox("Check player skin...", source, 255, 255, 0) 
    if (getElementType(source) == "player") then 
        triggerClientEvent(source, "onCheckPlayerSkin", source) 
        outputChatBox("Check player skin...", source, 255, 255, 0) 
    end 
end) 

Link to comment
And you are sure 'setElementModel' is being used? Otherwise re-check meta.xml or it's really server-side. Otherwise than that: Weird...

i changed my skin by admin panel + script working but this event only don't work

EDIT finaly its work its not working if change skin with admin panel

Link to comment
And you are sure 'setElementModel' is being used? Otherwise re-check meta.xml or it's really server-side. Otherwise than that: Weird...

i changed my skin by admin panel + script working but this event only don't work

EDIT finaly its work its not working if change skin with admin panel

Because it uses 'setPedSkin' as far as I know. And the event only works with 'setElementModel' :roll:

EDIT: Since Admin Panel is old, it may even using 'setPlayerSkin' if it was not updated to the new codes.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...