Results 1 to 9 of 9

Thread: Using Digital Mods while driving (IsSafe) question

  1. #1
    Newbie Aquaman's Avatar
    Join Date
    Oct 2006
    Location
    Frisco, TX
    Posts
    4

    Using Digital Mods while driving (IsSafe) question

    I have had the bad luck that all my attempts to develop scripts ended up in with the module can't be used while in movement message.

    Does anyone have a list or can provide tips on what functions to avoid when developing scripts in order to make them available when in movement?

    Thanks!

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    To allow your module to be used while driving, you have to overload the Module_IsSafe function and return true. By default all modules are considered unsafe unless the author explicitly declares it to be safe by overloading the IsSafe event

    i.e.

    Code:
    Function Module_IsSafe()
         Module_IsSafe = True
    End Function
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #3
    Low Bitrate
    Join Date
    Jan 2006
    Posts
    106
    I am curious, what type of scripts/mods have you been working on Aquaman?

  4. #4
    Variable Bitrate
    Join Date
    Sep 2005
    Posts
    249
    I have tried using the module_isSafe() but it makes no difference when driving. i still cannot access the module while driving. all i have done so far is

    Function module_isSafe()
    module_isSafe = True
    End Function

    include this function in the script. Am i using it wrong?

  5. #5
    Newbie
    Join Date
    Jul 2006
    Location
    Jacksonville, FL
    Posts
    41
    There's a very Good chance that the function is CaSe SpeCiFiC. Ie, Make sure it's ExAcTlY how it is SpElLed in the PoSt

  6. #6
    Variable Bitrate
    Join Date
    Sep 2005
    Posts
    249
    I checked. here is the code that i have in my mod

    Function Module_IsSafe()
    Module_IsSafe = True
    End Function

    one thing i noticed is that when am already my mod module and i start driving, i still get access to the module. But once I change module and try to get back to the mod module, am denied access.

    is that how the function should work?

  7. #7
    Newbie Jakiii's Avatar
    Join Date
    Oct 2006
    Location
    Los Angeles, CA
    Posts
    25

    What does it mean to Overload?

    Quote Originally Posted by god_of_cpu View Post
    To allow your module to be used while driving, you have to overload the Module_IsSafe function and return true. By default all modules are considered unsafe unless the author explicitly declares it to be safe by overloading the IsSafe event

    i.e.

    Code:
    Function Module_IsSafe()
         Module_IsSafe = True
    End Function

    Where do I add this code in the script? Does it matter?

    Thanks for any help -

  8. #8
    Low Bitrate
    Join Date
    Jan 2007
    Location
    In a house
    Posts
    96
    It shouldn't really matter as long as it is under the script for the module. If you drop down the left side box on the script editor, select "module," then on the right side select "IsSafe" it should create a stub for you where you can put the assignment statement in...

    Ryan

  9. #9
    Newbie Jakiii's Avatar
    Join Date
    Oct 2006
    Location
    Los Angeles, CA
    Posts
    25
    Thanks Ryan, I will try that

    Jamie

Similar Threads

  1. xbox mods, a new question
    By EBFoxbat in forum General MP3Car Discussion
    Replies: 14
    Last Post: 01-20-2005, 08:40 AM
  2. more mods, I have a question
    By Thinboy in forum MediaCar
    Replies: 4
    Last Post: 08-02-2004, 08:26 PM
  3. digital sound question
    By amrit50 in forum General Hardware Discussion
    Replies: 0
    Last Post: 02-18-2004, 11:54 PM
  4. Alpine PXA-h510 question??
    By LordNikon in forum General Hardware Discussion
    Replies: 2
    Last Post: 04-18-2003, 04:48 PM
  5. Replies: 2
    Last Post: 05-24-2001, 11:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •