Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Any errors in Debug Script?
  2. This would require a custom script..
  3. Acutely, i had a server hosted by Vortex Servers, and they're services is fantastic.
  4. Oh, sorry, i guess i should have read the whole message... But here would be an example: --bool dxDrawImageSection ( float posX, float posY, float width, float height, float u, float v, float usize, float vsize, mixed image ) dxDrawImageSection ( 0, 0, 500, 100, 50, 50, 50, 50, "picture.png" )--I think this would wok lolz
  5. Umm i've never used this function but i'd think it would be something like: dxDrawImageSection
  6. dxDrawText requires "onClientRender" The script would be: local isPlayerViewingImage = false; local sx, sy = guiGetScreenSize ( ) function dxDrawTheImage ( ) if ( isPlayerViewingImage ) then dxDrawImage ( 0, 0, sx, sy, "ImagePath.png" ) end end addEventHandler ( "onClientRender", root, dxDrawTheImage ) bindKey ( "F9", function ( ) isPlayerViewingImage = not isPlayerViewingImage end )
  7. xXMADEXx

    Need help,

    To script it youll need this: car = createVehicle ( id, x, y, z ) addEventHandler ( "onVehicleStartEnter", car, function ( p ) if ( getTeamName ( getPlayerTeam ( p ) ) ~= "The Team Name" ) then cancelEvent ( ) end end )
  8. Well you need the image (just download it) then you'll need: guiCreateStaticImage -- or dxDrawImage
  9. xXMADEXx

    Need help,

    This would require alot of scripting (to add the argument) it could be done, but it would just be faster to make a scripted car.
  10. Thanks you ! Is perfect for my server ! Sorry I debuted in script I'll add you to the credit of my server! No problem.
  11. Both are working. x) lolz, then why not post the correct one?
  12. You can try this, but i havn't tested it. local isCarModEnabled = false function newcar ( ) if not isCarModEnabled then local txd = engineLoadTXD("name.txd", id ) engineImportTXD(dff, id) local dff = engineLoadDFF("name.dff", id ) engineReplaceModel(dff, id) isCarModEnabled = true else engineRestoreModel ( id ) isCarModEnabled = false end end addCommandHandler ( "newcar", newcar )
  13. What do you mean? Like the sound play around the airplane?
  14. Em are you just trying to play the sound for the client or entire server? If just the client use: onClientResourceStart onClientResourceStop otherwise use triggerServerEvent, triggerClientEvent, addEvent, onPlayerJoin, onPlayerQuit
  15. function equi() setPedStat(source, 75, 500) end addEventHandler("onPlayerJoin", root, equi) addEventHandler ( "onPlayerWasted", root, function ( _, source ) if ( source ) then local current = getPedStat ( source, 75 ) setPedStat ( source, 75, current + 100 ) else return end end )
  16. Hi guys, so, i've never used "getTickCount()" before, and I hear its a lot better then using setTimer. I just have one problem.. The DX text will only show for 1 frame every second.. Im not really sure how to fix it either... local sx, sy = guiGetScreenSize ( ) local LastTick = 1000 addEventHandler ( "onClientRender", root, function ( ) local lc = getTickCount ( ) if ( lc-LastTick >= 1000 ) then dxDrawText ( lc, 0, 0, sx, sy, tocolor ( 202, 202, 202, 255 ), 3, "default-bold", "center", "center" ) LastTick = lc else return end end )
  17. You accidentally put the ID, not variable here. if getElementModel(car) == theCar then
  18. This isn't a request page. You'll need to try to find a free scripter, pay someone, or do it yourself.
  19. You cannot make slots like that (that I know of), but you can put the server slots to something (example: 500) and when the players in the server reach 450 then you have to enter a password or something join the game
  20. Erm, why are you trying to setElementData to a button?
  21. Its very rare for someone to make a resource for free. You probably have to pay someone.
  22. (I would like it if you made your own, and don't steal mine) setTimer setElementData getElementData getElementsByType
  23. What do you mean car sound? like the horn?
×
×
  • Create New...