Jump to content

DiSaMe

Helpers
  • Posts

    1,449
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by DiSaMe

  1. DiSaMe

    Billiard

    Nice, but... The balls don't rotate as they move. It would look better if they did.
  2. What's wrong with updating dimension client-side?
  3. getAttachedElements won't do the job because it's not an attachment done using attachElements. And the resource doesn't have the function to return elements attached to specific ped/player. The easiest solution would be setting object's parent to player using setElementParent and the object will be destroyed automatically when player quits.
  4. I did not "forget" this. I think it's up to scripters to do this in their resources. Elements attached with attachElements don't change their dimension and interior automatically either. I want to keep it consistent.
  5. The snow is an object with a custom model and it's raised with setElementPosition.
  6. It should work. But it doesn't save tags which are sprayed on elements (MTA objects, vehicles), because elements are destroyed when the server stops.
  7. drawtag_bc does that automatically when you stop either drawtag or drawtag_bc and loads when you start both of them. If you want to make a tag saving script yourself, there are two exported functions, getTagData and createTagFromExistingData, which you can read about in readme.html. You can also look at save_tags.lua in drawtag_bc if you need an example.
  8. DiSaMe

    -

    Use: getElementMatrix That will get position and rotation vectors of vehicle. In this way you can get world coordinates from position relative to vehicle and use them in setCameraMatrix. To have continuous updating of camera position, you need to do this in onClientPreRender.
  9. Drawtag exports two functions for that purpose, createTagFromExistingData and getTagData. You can read about them in readme.html. Also, you can look at save_tags.lua in drawtag_bc to see how it uses the functions. It stores texture data into binary file and the rest of element data into XML file.
  10. 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
  11. I moved my site to http://crystalmv.net84.net. Also, I'll probably release Drawtag 1.1 soon.
  12. 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.
  13. 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).
  14. 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.
  15. In that version - no, you can't draw on vehicles, but I've almost finished the newer version where you can
  16. setVehiclePanelState This is the most what you can do with windows in GTA.
  17. 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.
  18. 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.
  19. Second argument in triggerServerEvent is the source of event, so you need to replace "player" with "source" in the server-side script.
  20. 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.
  21. DiSaMe

    SQL Problem

    It's not. I was learning to script in SQL yesterday and today and it works with spaces too.
×
×
  • Create New...