Jump to content

[HELP] Try Help me pls


K4stic

Recommended Posts

HI i need one more time your help Community :)

1.

marker = createMarker ( x, y, z - 1, "cylinder", 3.5, 255, 255, 0, 170 ) 
blip = createBlipAttachedTo ( marker, 51 ) 

how make it to use one exported Attached blip and no the id?

2.

givePlayerMoney ( source, 200 ) 

how make it if the vehicle 100% to be give that money

Link to comment

ok i make it but it's make problem at line 27

addEvent ( "del", true ) 
addEventHandler("del", root, 
    function ( ) 
        if ( not isPedInVehicle ( source ) ) then 
            return 
        end 
  
        local vehicle = getPedOccupiedVehicle ( source ) 
        if ( not delses [ getElementModel ( vehicle ) ] ) then 
            return 
        end 
  
        local money = math.random ( 100, 400 ) 
        givePlayerMoney ( source, money ) 
        if getElementHealth(vehicle) > 990 then 
        givePlayerMoney ( source, 50 ) 
        outputChatBox("You get bonus for good condition!", player, 255, 0, 0, false) 
        setElementFrozen ( vehicle, true ) 
        setTimer ( 
            function ( ) 
                setElementFrozen ( vehicle, false ) 
            end 
            ,1000, 1 
        ) 
        getNewdelLocation ( source ) 
    end 
) 

Edited by Guest
Link to comment

'end' missed on line 26

    addEvent ( "del", true ) 
    addEventHandler("del", root, 
        function ( ) 
            if ( not isPedInVehicle ( source ) ) then 
                return 
            end 
      
            local vehicle = getPedOccupiedVehicle ( source ) 
            if ( not delses [ getElementModel ( vehicle ) ] ) then 
                return 
            end 
      
            local money = math.random ( 100, 400 ) 
            givePlayerMoney ( source, money ) 
            if getElementHealth(vehicle) > 990 then 
            givePlayerMoney ( source, 50 ) 
            setElementFrozen ( vehicle, true ) 
            setTimer ( 
                function ( ) 
                    setElementFrozen ( vehicle, false ) 
                end 
                ,1000, 1 
            ) 
            getNewdelLocation ( source ) 
        end 
end 
) 
     

Link to comment

ok

local money = math.random ( 100, 400 ) 
givePlayerMoney ( source, money ) -- this is to get money then finnish the job 
if getElementHealth(vehicle) >= 990 then 
givePlayerMoney ( source, 50 ) -- and this is if have 990 and up vehicle health(The Bonus) 

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