Jump to content

Marker bug Help


T-Raw/Tyga

Recommended Posts

Well this script is when the criminals kill a police and he is inside the car a marker get created

  
----Criminal Part---- 
  
function mout ( ammo, attacker, weapon, bodypart ) 
    -- if there was an attacker 
        local veh = getPedOccupiedVehicle(source) 
    if ( attacker ) then 
    if isPedInVehicle ( source ) and getTeamName(getPlayerTeam(source)) == "Police" then 
    if ( getElementType ( attacker ) == "player" ) and getTeamName(getPlayerTeam(attacker)) == "Criminals" then 
                     theduck = createMarker ( 2449.59375, 2338.9548339844, 10.8203125, "cylinder", 1, 255, 0, 0, 170 ) 
            end 
        end 
    end 
    outputChatBox("Works Fine", attacker, 255, 0, 0) 
    addEventHandler( "onMarkerHit", theduck, floss ) 
end 
addEventHandler ( "onPlayerWasted", getRootElement(), mout ) 
  

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...