Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Reputation Activity

  1. Like
    Ahmed Ly reacted to thisdp for a status update, Happy Birthday Bro!   
    Happy Birthday Bro!
  2. Like
    Ahmed Ly reacted to IIYAMA for a status update, Using one addEventHandler on a group of elements? Answer: local group = createElement   
    Using one addEventHandler on a group of elements?
     
    Answer:
    local group = createElement("groupMyCutePeds") -- Create a custom element and save it in to the variable <group>. -- Create 3 peds. local ped1 = createPed(120, 5540.6654, 1020.55122, 1240.545) local ped2 = createPed(120, 5541.6654, 1021.55122, 1240.545) local ped3 = createPed(120, 5542.6654, 1022.55122, 1240.545) -- Set the parent of the 3 peds. setElementParent(ped1, group) setElementParent(ped2, group) setElementParent(ped3, group) -- Add an addEventHandler and use the <group> as <attachedTo> element. addEventHandler("onPedWasted", group, -- "onPedWasted" = serverside. "onClientPedWasted" = clientside. function () outputChatBox("One of my cute peds just died. ;'( No exceptions!") end) (untested muhahaha :D)
  3. Like
    Ahmed Ly reacted to IIYAMA for a status update, Added a tutorial:   
    Added a tutorial:
     
  4. Like
    Ahmed Ly reacted to Mr.CoR for a status update,   
×
×
  • Create New...