Jump to content

Gordon_G

Members
  • Content Count

    269
  • Joined

  • Last visited

Community Reputation

60 Popular

About Gordon_G

  • Rank
    Peon
  • Birthday April 10

Details

  • Location
    Lille, France

Recent Profile Visitors

2,836 profile views
  1. I understand, thanks for your answer
  2. Hi, Isn't the use of OOP better (i mean, faster) to do this kind of position transformation ?
  3. Could you be more specific ? Do you want the user the enter his discord's name ?
  4. To talk about the original question... The error is solvable easily Look, you've put "local" at the start of the line when you define you function local function getTooltip(name) If you add a "local" to a variable (wich can be a function, a string, an integer...) then you won't be able to access it directly from another file I guess you know what to do now, have a nice day.
  5. i'm not sure to understand but in lua you can declare a local function, is that what you want to do ?
  6. GetAttachedElements doesn't work with the bone_attach resource since the attached objects aren't attached with attachElements
  7. you could store the attached weapon object in an element data (setElementData) then retrieve this element data client-sidely (getElementData) once the player is aiming and hiding the object with setElementAlpha OR you could not use element datas (cause it has a lot of security issues and lacks of performance) and send the object manually to client side (triggerClientEvent)
  8. then pass the estimated cost clientside when you call the client side's gui
  9. I may have a solution. When you attach your ped to an element (like an object) and then destroy that element it turns the light back on the peds (so the bug is solved) However I don't know if it always work, I just noticed that while I was scripting
  10. 1 - Download an image like this one (or make it yourself) https://www.google.fr/search?q=transparent+with+black+vignette&tbm=isch&ved=2ahUKEwjwpvrU96zpAhX6gM4BHcEBC8oQ2-cCegQIABAA&oq=transparent+with+black+vignette&gs_lcp=CgNpbWcQAzoECCMQJzoECAAQQzoCCAA6BAgAEB46BAgAEBM6CAgAEAgQHhATOgYIABAIEB46BggAEAUQHlCcnAZYnbgGYKq5BmgAcAB4AIABQIgB9wiSAQIyMJgBAKABAaoBC2d3cy13aXotaW1n&sclient=img&ei=1Nu5XvDsO_qBur4PwYOs0Aw&bih=631&biw=1366#imgrc=dXC6_MSyTzxFAM 2 - Add it to your resource's meta.xml by adding a line like this one <file src="your name file.extensi
  11. Working on something a bit different.
  12. Try to debug it by adding some iprint where you have an IF and print the life of the source etc so you can see where the issue comes from
  13. Il manque un end ligne 38 pour clore la condition de la ligne 31.
  14. For performance reason I don't advise you to do that on a server with a lot of people connected
×
×
  • Create New...