Jump to content

Help me fast


MAB

Recommended Posts

i am making a fisher job!

what is the problem with that? i can't see the blip or the outPutChatBox that says your boat is in the water but the boat is done

how to put the code for you?

local fishmark = createMarker ( -2185.32202, 2416.38135, 4.5, "cylinder", 1.5, 255, 255, 0, 255 ) 
createBlipAttachedTo ( fishmark, 9 ) 
  
function outPut ( hitElement, matchingDimension ) 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and not (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "Press E to start the job", hitElement, 255, 255, 0, true ) 
end 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "You have arleady started the job before", hitElement, 255, 255, 0, true ) 
end 
end 
addEventHandler( "onMarkerHit", fishmark, outPut ) 
  
function start ( hitElement, key, keyState ) 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and not getElementData ( hitElement, "fisher" ) then  
setElementData ( hitElement, "fisher", true ) 
local boat = createVehicle ( 473, -2218.21387, 2419.93970, 1 ) 
end 
if boat then 
setElementData ( boat, "myboat", getPlayerName ( hitElement ) ) 
blip = createBlipAttachedTo ( boat, 56 ) 
setElementVisibleTo ( blip, root, false ) 
setElementVisibleTo ( blip, hitElement, true ) 
outputChatBox ( "Your boat is in the water, find it and start your job", hitElement, 255, 255, 0, true ) 
unbindKey ( player, "E", "down", start ) 
end 
end 
  
function bind (hitElement, matchingDimension) 
bindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerHit", fishmark, bind ) 
  
function unbind ( hitElement, matchingDimension ) 
unbindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerLeave", fishmark, unbind ) 

Link to comment
i am making a fisher job!

what is the problem with that? i can't see the blip or the outPutChatBox that says your boat is in the water but the boat is done

how to put the code for you?

local fishmark = createMarker ( -2185.32202, 2416.38135, 4.5, "cylinder", 1.5, 255, 255, 0, 255 ) 
createBlipAttachedTo ( fishmark, 9 ) 
  
function outPut ( hitElement, matchingDimension ) 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and not (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "Press E to start the job", hitElement, 255, 255, 0, true ) 
end 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "You have arleady started the job before", hitElement, 255, 255, 0, true ) 
end 
end 
addEventHandler( "onMarkerHit", fishmark, outPut ) 
  
function start ( hitElement, key, keyState ) 
if getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement ) and not getElementData ( hitElement, "fisher" ) then  
setElementData ( hitElement, "fisher", true ) 
local boat = createVehicle ( 473, -2218.21387, 2419.93970, 1 ) 
end 
if boat then 
setElementData ( boat, "myboat", getPlayerName ( hitElement ) ) 
blip = createBlipAttachedTo ( boat, 56 ) 
setElementVisibleTo ( blip, root, false ) 
setElementVisibleTo ( blip, hitElement, true ) 
outputChatBox ( "Your boat is in the water, find it and start your job", hitElement, 255, 255, 0, true ) 
unbindKey ( player, "E", "down", start ) 
end 
end 
  
function bind (hitElement, matchingDimension) 
bindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerHit", fishmark, bind ) 
  
function unbind ( hitElement, matchingDimension ) 
unbindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerLeave", fishmark, unbind ) 

local fishmark = createMarker ( -2185.32202, 2416.38135, 4.5, "cylinder", 1.5, 255, 255, 0, 255 ) 
createBlipAttachedTo ( fishmark, 9 ) 
  
function outPut ( hitElement, matchingDimension ) 
if not isPedInVehicle ( hitElement ) and not (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "Press E to start the job", hitElement, 255, 255, 0, true ) 
end 
if not isPedInVehicle ( hitElement ) and (getElementData ( hitElement, "fisher" ) == true) then 
outputChatBox ( "You have already started the job before", hitElement, 255, 255, 0, true ) 
end 
end 
addEventHandler( "onMarkerHit", fishmark, outPut ) 
  
function start ( hitElement, key, keyState ) 
local name = getPlayerName (hitElement) 
if not isPedInVehicle ( hitElement ) and not (getElementData ( hitElement, "fisher" ) == true) then 
if hitElement then 
setElementData ( hitElement, "fisher", true ) 
local boat = createVehicle ( 473, -2218.21387, 2419.93970, 1 ) 
local blip = createBlipAttachedTo ( boat, 56 ) 
setElementVisibleTo ( blip, root, false ) 
setElementData ( boat, "myboat", name ) 
setElementVisibleTo ( blip, hitElement, true ) 
outputChatBox ( "Your boat is in the water, find it and start your job", hitElement, 255, 255, 0, true ) 
unbindKey ( hitElement, "E", "down", start ) 
end 
end 
end 
  
function bind (hitElement, matchingDimension) 
bindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerHit", fishmark, bind ) 
  
function unbind ( hitElement, matchingDimension ) 
unbindKey ( hitElement, "E", "down", start ) 
end 
addEventHandler( "onMarkerLeave", fishmark, unbind ) 

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