Jump to content

DiSaMe

Helpers
  • Posts

    1,461
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by DiSaMe

  1. I released it: Well, yeah, but you were first to do it I didn't do it in the first version because I'm not going to turn the script into professional image editing software anyway
  2. I moved my site to http://crystalmv.net84.net. Also, I'll probably release Drawtag 1.1 soon.
  3. I don't know what micheal1230 and karthik_184 want when they ask you to show your code, but that's not needed. To convert the value to string, use function tostring and pass the value as the first argument.
  4. Animations won't do any more than control states do. If the ped isn't synced by player, it won't move on the server. Just use setElementPosition with a timer to move the ped towards the destination every second (or a few seconds).
  5. DiSaMe

    Health kit

    Detect when player switches between certain weapon slots, then disable the weapon icon in the HUD and draw your own image in that position, create an object, attach it to player's hand using bone attachments resource from here or here and when the player presses fire key, change the health.
  6. In that version - no, you can't draw on vehicles, but I've almost finished the newer version where you can
  7. setVehiclePanelState This is the most what you can do with windows in GTA.
  8. DiSaMe

    staff tag

    I'd rather like to know, what is right? You use x, y and z before getting the position of player, so you're passing nil values to getScreenFromWorldPosition. You also use those variables in dxDrawText, but they're coordinates in GTA world, and dxDrawText needs on-screen coordinates.
  9. DiSaMe

    Variables

    Events are independent from resources. Once an event is added with addEvent, any resource can trigger that event or attach handler functions to it.
  10. Second argument in triggerServerEvent is the source of event, so you need to replace "player" with "source" in the server-side script.
  11. DiSaMe

    SQL Problem

    Oh, if that works fine, that means the function puts the quotes automatically. But the problem in your script probably comes from getAccountName return value. From the error you wrote, it seems to return false, so the quotes aren't put around it, unlike strings. You need to check what it returns before executing the query.
  12. DiSaMe

    SQL Problem

    It's not. I was learning to script in SQL yesterday and today and it works with spaces too.
  13. DiSaMe

    SQL Problem

    I tested it and I see where's the problem now. You didn't put the quotes where the name gets inserted. So this should work: local gname = executeSQLQuery("SELECT govName FROM Government_members WHERE name = '?'", nam)
  14. DiSaMe

    SQL Problem

    Maybe the error is about column called 'name' which you wrote after WHERE?
  15. DiSaMe

    SQL Problem

    Government_members is a database? AFAIK, it should be a table.
  16. The script uses element data, so you need to get and set it on saving and loading. But some functions are attached to element data change events, so I don't know how stability will be affected. I will probably make functions for creating tags and getting information about them which could be called from other resources.
  17. That function is wrong. Velocity is measured by GTA units per 1/50th of second. GTA unit is one metre. So speed in kph is velocity*180 and maximum infernus speed is 221 kph.
  18. I think I could try making functions to read to and write from binary files efficiently because I need them too, but I have to do something else first.
  19. Try this: executeCommandHandler("playpedrecord", getElementsByType("console")[1], 47, 1) executeCommandHandler makes MTA act in the way as if command was entered.
  20. Or even better, attach it using bone attachments resource from here or here and it will move and rotate with the body part which it is attached to.
  21. I think that's because it has collision which camera cannot go though. Try disabling the collision of object: setElementCollisionsEnabled
  22. I don't have a list, but green spray effect appears continuously. You can test the effects yourself - create an object near yourself and you will see if particles keep coming out.
  23. You can download particle objects resource from here or here. It has all (unless I've missed something) GTA SA particle effects. But you can't customize the colors, so it will be red. If you need green effect, you can try making your own with DX drawing functions.
  24. DiSaMe

    Animations

    Use timers. function someAnimation(ped) setPedAnimation(ped, "block1", "anim1") setTimer(setPedAnimation, 1000, 1, ped, "block2", "anim2") end
  25. Maybe I will include those features in the future. And nice paintings, by the way
×
×
  • Create New...