Jump to content

Unka231

Members
  • Posts

    1
  • Joined

  • Last visited

Unka231's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Salve galera estou tentando fazer um script que detecta a skin e a acl do player para ele poder pegar um veículo porém da problema na hora de detectar a skin mesmo estando com a skin do id certo ele faz o "else" que é o texto e acaba não pegando o veículo, segue o código abaixo. Spawn1 = createMarker(-1013.2669067383,-1061.5272216797,129.26875305176 -1,"cylinder", 1.5, 0,255,0,70) Destroy1 = createMarker(-1043.8754882813,-1061.3928222656,129.26875305176 -1,"cylinder", 1.9, 255,0,0,80) veh = {} function spawnvtr ( hitElement ) if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then -- Adicionado if isElement( veh[hitElement] ) then destroyElement ( veh[hitElement] ) local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PMESP") ) and getElementModel (thePlayer) == 144 then veh[hitElement] = createVehicle(540, -1038.7395019531,-1059.2214355469,129.65295410156, -0.021297674626112, -0.001555333728902, 359.54086303711) warpPedIntoVehicle ( hitElement, veh[hitElement] ) --exports._infobox:addNotification(hitElement, "", "success") else outputChatBox("#FFFFFF| #E10000PMESP #FFFFFF| Somente #E10000PMESP #FFFFFFPodem Pegar Este Veiculo.",hitElement,255,255,255, true) end end end end addEventHandler("onMarkerHit", Spawn1, spawnvtr) function destroyvtr ( hitElement ) if isElement(veh[hitElement]) then destroyElement (veh[hitElement]) --exports._infobox:addNotification(thePlayer, "", "success") end end addEventHandler("onMarkerHit", Destroy1, destroyvtr)
×
×
  • Create New...