Jump to content

Black2

Members
  • Posts

    67
  • Joined

  • Last visited

About Black2

  • Birthday 06/08/1999

Black2's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. Hello, I was wondering because if I just change the command the resource does not work? for example the first with "givecash" command works but the second with the command "test" does not work because it happens that someone could explain to me? Thank you 1 function consoleGiveCash ( thePlayer, command, amount ) givePlayerMoney ( thePlayer, amount ) end addCommandHandler ( "givecash", consoleGiveCash ) 2 function consoleGiveCash ( thePlayer, command, amount ) givePlayerMoney ( thePlayer, amount ) end addCommandHandler ( "test", consoleGiveCash )
  2. Hello, I was wondering how I can do to run the Test2 function when in a specific car, let's say infernus whose ID is 411, when driving with the vehicle perform this function, instead of with the command,would be grateful for your help, thank you If you have not understood very well,I made a script and it performs the function with the command, I want to convert it to work when you are inside the vehicle and driving,Thx again addCommandHandler( "Test", Test2 )
  3. Hello, I've been having a problem to cancel an event if someone help me I thank you. Well I want setElementData (hitElement, "Test2", true) is only available if the player is on the mark but to leave it still continues because it does not work? Does anyone have any ideas ? Thank you for your help. ^^ function Test( hitElement ) if getElementType ( hitElement ) == "player" then setElementData ( hitElement, "Test2", true ) end function markerLeave( leaveElement, matchingDimension ) if getElementType( leaveElement ) == "player" then outputChatBox ( "Player has left a marker", getRootElement(), 255, 255, 0 ) setElementData ( hitElement, "Test2", false ) end end addEventHandler( "onMarkerLeave", myMarker, markerLeave )
  4. Hello anyone know what is vehicle plate ID ? Thx
  5. Hello,anyone know how i can remove the text of area.Thx Here a photo: http://prntscr.com/b59l7x
  6. Hello, I was wondering how I can do to open a brand with button. Example: Say a brand open a window, I was wondering how I do to the window only open if I'm on the mark and press a key to open Thanks for helping
  7. Hello,How can I do to disable the collision between the players of the server? Thx
  8. still does not work
  9. Hello, I found this race script and it works to hit the mark, but leave the marking and is well away from her the race starts, I want you to work only when the marking, Can anyone help me? Thank you very much in advance I do not know how, maybe if it is false setElementData (hitElement, "race_isSignedUp", true) for setElementData (hitElement, "race_isSignedUp", false) but I could not someone have any idea, thx function onSignUpMarkerHit( hitElement ) if getElementType ( hitElement ) == "player" then if not getElementData ( hitElement, "race_isSignedUp" ) then if getPedOccupiedVehicle ( hitElement ) then if getVehicleController ( getPedOccupiedVehicle ( hitElement ) ) == hitElement then local playerTeamName = getTeamName ( getPlayerTeam( hitElement ) ) if not copTeams[playerTeamName] then table.insert ( signedUpPlayers, hitElement ) exports.DENdxmsg:createNewDxMessage ( hitElement, "You succesfully signed up!", 0, 255, 0 ) setElementData ( hitElement, "race_isSignedUp", true ) else exports.DENdxmsg:createNewDxMessage ( hitElement, "Law can't sign up for a street race!", 255, 0, 0 ) end end else exports.DENdxmsg:createNewDxMessage ( hitElement, "You need a vehicle to sign up!", 255, 0, 0 ) end end end end
  10. Why this don't work ? can anyone help?,Thx function test2 () dxDrawText("Test", (sx-612), (sy-29), 780, 752, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, true, true, false) end addCommandHandler( "test", test2 )
  11. [Help]Export - Resolved
  12. I want all objects of a certain Id have another scale. Example:All objects have a scale of 1, I want all id 1234 object has the scale 2. How i can make this ?
  13. Black2

    [Help]Textures

    Not giving more error in debugscript but still does not work. I wonder why ? Image http://i.imgur.com/2GwDDHl.png
  14. Hello,Why can't I add a texture? I need .dff too ? i can't use only .txd ? jump = engineLoadTXD ( "jump.txd" ) engineImportTXD ( jump, 1634 ) thanks for helping. :3
×
×
  • Create New...