Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You don't expect people will just give you all what you want, do you? Are you willing to pay someone to do this?
  2. You put it with the real name of the vehicle ( not the mod name, the vehicle you are replacing )? I guess you are using freeroam, so you can press F1 and spawn that vehicle, or do /cv
  3. Castillo

    GUI help

    if getPlayerTeam(hitElement) and getTeamName(getPlayerTeam(hitElement)) == "SWAT" then
  4. Castillo

    GUI help

    Yes, instead of using getPlayerTeam + getTeamName, use: getElementData ( hitElement, "gang" )
  5. Yes, you can download the DFF and TXD and then use that resource to replace them.
  6. Castillo

    GUI help

    That's because you aren't checking if the hit element is the local player at "SWATjob" function. In this line: if (getElementType(hitElement) == 'player' ) then You can add: if ( hitElement == localPlayer and getElementType ( hitElement ) == 'player' ) then
  7. You're welcome. P.S: Thanks.
  8. Use this resource: https://community.multitheftauto.com/in ... ls&id=3016
  9. And the admin group has "startResource" permission set to "true"?
  10. Did you edit it whiel the server was stopped?
  11. Wrong, it doesn't return true if it found a match. lua.org quote:
  12. Add the resource to the acl.xml, under Admin group.
  13. You can buy it from my website ( these screenshots and data were taken from there ).
  14. I didn't say that you must set the alpha to 0, what I said is that you had it on 0, but had to be 255 or another value.
  15. No, I didn't change anything related to positions.
  16. It's not useless, it's pretty much related to what you are trying to do.
  17. If you have the latest version of my resource, then you can use the function getPlayerGang exported fro mit. Then you can check like this on your script: marker1 = createMarker (-2639.30, 1406.47, 906.46,"cylinder",1.5,0,200,0,0) marker2 = createMarker (-2636.77, 1402.80, 906.46,"cylinder",1.5,0,200,0,0) function gangEntrence ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then if ( exports [ "gang_system" ]:getPlayerGang ( hitElement ) == "Glory" ) then setElementPosition ( hitElement, -2636.77, 1402.80, 906.46 ) end end end addEventHandler ( "onMarkerHit", marker1, gangEntrence ) function gangExit ( hitElement ) if ( getElementType ( hitElement ) == "player" ) then if ( exports [ "gang_system" ]:getPlayerGang ( hitElement ) == "Glory" ) then setElementPosition ( hitElement, -2639.30, 1406.47, 906.46 ) end end end addEventHandler ( "onMarkerHit", marker2, gangExit )
  18. I think that using "onClientRender" is rather useless, you can use the onClientPlayerChangeNick event to keep the label updated.
  19. local images = { "BG1.jpg", "BG2.jpg", "BG3.jpg", "BG4.jpg" } local Time = 5000 local lastTick = getTickCount ( ) local img = 1 local BGimage = guiCreateStaticImage ( 0, 0, 1920, 1200, "img/BG1.jpg", true ) addEventHandler ( "onClientRender", root, function ( ) local curTick = getTickCount ( ) if ( curTick - lastTick > Time ) then img = ( img >= #images and 1 or img + 1 ) guiStaticImageLoadImage ( BGimage, images [ img ] ) lastTick = curTick end end ) Try it.
  20. Account data has a limit, so if your JSON string is too long, it'll cut part of it, which will break it and won't be recognized as a JSON string by fromJSON.
×
×
  • Create New...